write a programme to add two numbers using short data type
Answers
Answered by
1
#include
short int main()
{
short int num1, num2, sum;
printf("Enter first number: ");
scanf("%d", &num1);
printf("Enter second number: ");
scanf("%d", &num2);
sum = num1 + num2;
printf("Sum of the entered numbers: %d", sum);
return 0;
}
short int main()
{
short int num1, num2, sum;
printf("Enter first number: ");
scanf("%d", &num1);
printf("Enter second number: ");
scanf("%d", &num2);
sum = num1 + num2;
printf("Sum of the entered numbers: %d", sum);
return 0;
}
Similar questions
Math,
8 months ago
Chemistry,
8 months ago
Social Sciences,
8 months ago
History,
1 year ago
Math,
1 year ago
Political Science,
1 year ago