Earn while u Learn

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

ad

substraction of two numbers

This program is for subtracting two numbers inputted be the user.

CODE:
__________________________________________________________

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

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

__________________________________________________________

0 comments:

Sign in / Join

Labels