1.

Write a C program to calculate sum of two numbers?

Answer»

This is a SIMPLEST program for CALCULATE the sum of TWO numbers.

#include

INT main()

{

int a, b, sum;

printf("\nEnter two no: ");

SCANF("%d %d", &a, &b);

sum = a + b;

printf("Sum : %d", sum);

return(0);

}

Hope it helps you.



Discussion

No Comment Found