write a program to add 2 no,s' in c?
Share
write a program to add 2 no,s' in c?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Answer:
Addition of two numbers in C
int main() { int x, y, z;
printf("Enter two numbers to add\n"); scanf("%d%d", &x, &y);
printf("Sum of the numbers = %d\n", z);
Explanation:
plz mark me as brilliant
#include <stdio.h>
int main()
{
int a, b, s;
printf("Enter first number: ");
scanf("%d",&a);
printf("Enter second number: ");
scanf("%d",&b);
s=a+b;
printf("\nSum is: %d",s);
return 0;
}