Computer Science, asked by prakharrajsinha, 10 months ago

Write a program to store two integer type variable and display them

pls answer ​

Answers

Answered by rajstar0001
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 IlakkiyaK
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