C Program : Addition of two numbers using Scanf Function C Language Knowledge Based Info. #include<stdio.h> #include<conio.h> void main(){ int a,b,sum; clrscr(); printf("Enter 1st no. "); scanf("%d",&a); printf("Enter 2nd no. "); scanf("%d",&b); sum = a+b; printf("Sum of a & b is %d",sum); getch(); } Watch this video for more : Share this Share on FacebookTweet on TwitterPlus on Google+
EmoticonEmoticon