Here is a simple program that will print sum of two variables. As you learnt in previous post, you will include header file(s) then open body of program.



#include

#include

void main()

{

int a=5,b=7,c;

c=a+b;

printf("Sum of Two Number is %d.",c);

getch();

}

We will discuss about data types in next post. Keep checking.

Leave a Reply

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More

Adblock Detected

Please support us by disabling your AdBlocker extension from your browsers for our website.