Earn while u Learn

Tips tweaks hacks on computer with C C++ VB tutorials and ways to earn money online

ad

sum of two nubers

This program is the first program to calculate the sum of two numbers in C.

CODE:
__________________________________________________________

#include(stdio.h)
#include(conio.h)

main()
{
int x,y,sum=0;
printf("Enter two number");
scanf("%d%d",&x,&y);
sum=x+y;
printf("sum = %d ",sum);
getch();
}

__________________________________________________________

0 comments:

Sign in / Join

Labels