Thursday 16 August 2012

c program : to add two numbers

#include<stdio.h>
 
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);
 
   return 0;
}

No comments:

Post a Comment