Sum Of Two Numbers In C


#include<stdio.h> #include<conio.h> void main(){ int a,b,c; clrscr(); printf("enter first number"); scanf("%d",&a); printf("enter second number"); scanf("%d",&b); c=a+b; printf("total number is %d",c); }

Output:-

10 + 20 = 30