write a program to add 2 no,s' in c?
Answers
Answered by
0
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
Answered by
1
- Write a program in C to add 2 numbers.
#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;
}
Similar questions