#include <stdio.h>
main()
{
int firstNumber;
int secondNumber;
int addition;
firstNumber = 234;
secondNumber = 567;
addition = firstNumber + secondNumber;
printf("Your addition is %d", addition);
getchar();
}
Oct 7, 2012
Addition of two variables
Same as the last sum/addition post, but I introduce variables. The variables are entered in the code, the program will not ask for them. Then the program work with the numbers and show the result.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment