New programmer (Inspiration)
Posted by JanWan
Last Updated: March 02, 2012
First, every programmer have to start from basic. So to become a great programmer you will have to LEARN how to write code like the one below:

/*Program to calculate the product of two number*/
# include <stdio.h>

int a, b, c;

int Addition (int x, int y);

main()
{
/*input the first number*/
printf("Enter a number between 1 and 100: ");
scanf("%d", &a);
/*Input the second number*/
printf("Enter a number between 1 and 100: ");
scanf("%d", &b);
/*Calculate and display the product*/
c = Addition(a, b);
printf("%d plus %d = %d\n", a, b, c);
return 0;
}

/*Function returns the product of its two arguments*/
int Addition(int x, int y)
{
return (x + y);
}

J.W. PRODUCTION
Related Content