Pages

Monday, November 9, 2015

c program for addition of 2 nos

// c program for addition of 2 nos 
#include<stdio.h>
void main()
{
   int a, b, c;
 
   printf("Enter two numbers to add\n");
   scanf("%d%d",&a,&b);
 
   c = a + b;
 
   printf("Sum of entered numbers = %d\n",c);
}

No comments:

Post a Comment