c programming
c program to add two numbers
#include <stdio.h>
void main()
{
 int a,b,c;
 printf("enter your numbers ")
 scanf("%d %d",&a,&b);
 c=a+b;
 printf("the addition is %d",c); 
}
  
  sample input enter your numbers: 5,7
sample output the addition is 12
No comments:
Post a Comment