Have a Read!

Hi Everyone.
The idea for this page is to provide new c users simple c tutorials to learn how to develop the logic and more importantly correct way to write syntax.
ENJOY !!!

Tuesday, January 25, 2011

C PROGRAM FOR SIMPLE SUBTRACTION

#include<stdio.h>

int main () {

int x,y,difference;

printf("ENTER THE NUMBERS:\n");

scanf("%d%d",&x,&y);

difference=x-y;

printf("THE DIFFERENCE OF TWO NUMBERS IS %d\n",difference);

return 0;
}

No comments:

Post a Comment

Related Posts with Thumbnails