Computer Science, asked by khegendrajha, 8 months ago

write a program to add 2 no,s' in c?​

Answers

Answered by suhanasharma58123
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 anindyaadhikari13
1

\star\:\:\:\sf\large\underline\blue{Question:-}

  • Write a program in C to add 2 numbers.

\star\:\:\:\sf\large\underline\blue{Source\:Code:-}

#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