1 2 3 4 5 6 7 8 9 | #include <stdio.h> main() { int a,b,result; //variable declaration scanf("%d %d",&a,&b); //input from user result = a+b; //adding two numbers printf("%d\n",result); //printing the result } |
Thursday, March 3, 2016
Adding two number in C
Labels:
C Programming
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Thank you for commenting. Please wait for response :)