Loading...

Monday 24 October 2011

// // Leave a Comment

Simple Program Adding Two Veriables

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.