Monday, 30 March 2015

c program to addition of two numbers

write a c program to addition of two numbers

/*  c program to addition of two numbers */

/* author:sai       date:27-3-2015 */

#include

int main()
{
int a,b,c;

printf("Enter two numbers for addition\n");
scanf("%d%d",&a,&b);

c = a + b;

printf("Sum of two numbers is = %d\n",c);

return 0;
}

No comments:

Post a Comment