Computer Science, asked by sahilrima8, 20 days ago

WAP to calculate the sum of two numbers entered by the user.​

Answers

Answered by AbhiThakur07
0

Explanation:

printf("Enter two integers: "); scanf("%d %d", &number1, &number2); Then, these two numbers are added using the + operator, and the result is stored in the sum variable. Finally, the printf() function is used to display the sum of numbers. printf("%d + %d = %d", number1, number2, sum);

Answered by ruhinaazz
0

Answer:

#include<studio.h>

#include<condo.h>

int main( )

{

int a, b, sum;

clrscr( );

printf("\n Enter two numbers : ");

scanf("%d %d" ,&a ,&b);

sum=a+b;

printf("sum :%d", sum);

return(0);

getch( );

}

Similar questions