Computer Science, asked by gramm, 10 months ago

request the user for two integers and outputs them and their sum

Answers

Answered by Tanmay0098
0
#include
int main() {

int number1, number2, sum;

printf("Enter two integers: ");
scanf("%d %d", &number1, &number2);

// calculating sum
sum = number1 + number2;

printf("%d + %d = %d", number1, number2, sum);
return 0;
}
Answered by Fahadkhan4786
0
a=parseInt(prompt(“Enter 1 no”))
b=parseInt(prompt(“Enter 2no”))
Sum=a+b
Document.write(sum)
Hope you will mark me as brainliest
Similar questions