request the user for two integers and outputs them and their sum
Answers
Answered by
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;
}
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
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
b=parseInt(prompt(“Enter 2no”))
Sum=a+b
Document.write(sum)
Hope you will mark me as brainliest
Similar questions