Computer Science, asked by deepakkaligotla, 9 months ago

1. Write a program to Accept two numbers and
a. find its sum.
b. find its difference.
c. find its product.
Test the program using different integral data type signed/unsigned char/int/long.
First test the result using small values. Then test the same program using large values.
Observe the results.

Answers

Answered by Anonymous
13

\huge\mathcal{Answer:}

include <stdio.h>

int main()

{

char a = 30, b = 40, c = 10;

char d = (a * b) / c;

printf ("%d ", d);

return 0;

}

Answered by ganesh10115
1

Answer:

//program to find sum ot two intergers

#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;

Explanation:

Enter two integers: 11

11

11 - 11 = 0

Similar questions