program to add two number input by user.

#include<stdio.h>
void main()
{
     int a,b,c;
     printf("Enter a number: ");
     scanf("%d",&a);
     printf("Enter a number: ");
     scanf("%d",&b);
     c=a+b;
     printf("sum=%d",c);
}

Comments