Home ProgrammingC Language Simple Program Adding Two Veriables

Simple Program Adding Two Veriables

by John Bhatt
368 views

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 site uses Akismet to reduce spam. Learn how your comment data is processed.

Simple Program Adding Two Veriables

by John Bhatt time to read: <1 min
0