Write a program to store two integer type variable and display them
pls answer
Answers
Answered by
1
Answer:
Int' stores only integer values, where as 'char' stores characters as well. The difference is the size in byte of the variable, and from there the different values the variable can hold. A char is required to accept all values between 0 and 127 (included).
Explanation:
Mark as brilliant please
Answered by
2
Answer:
Here's your answer
Explanation:
Program to Add Two Integers
#include <stdio.h>
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;
}
Output
Enter two integers: 12
11
12 + 11 = 23
Similar questions
Science,
5 months ago
Computer Science,
5 months ago
Social Sciences,
10 months ago
Biology,
10 months ago
Math,
1 year ago