write a c program to find sum of two numbers
Answers
Answered by
3
#include<stdio.h>
int 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;
}
Attachments:
Answered by
5
#include<stdio.h>
#include<conio.h>
int main ()
{
int a , b ,c;
printf("enter the numbers \n",a,b);
scanf ("%d\t %d",&a,&b);
c= a+b;
printf("Sum of Numbers is %d",c);
getch();
}
#include<conio.h>
int main ()
{
int a , b ,c;
printf("enter the numbers \n",a,b);
scanf ("%d\t %d",&a,&b);
c= a+b;
printf("Sum of Numbers is %d",c);
getch();
}
Similar questions
English,
8 months ago
Math,
8 months ago
Math,
8 months ago
Social Sciences,
1 year ago
Math,
1 year ago
Math,
1 year ago
Social Sciences,
1 year ago