Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

/*Program to subtract two numbers in C.

Programmer: Harsh Shah, Date: 29/6/13*/

#include<stdio.h>

#include<conio.h>

void main(){

int one, two, sub;

printf("Enter first number - ");

scanf("%d",&one);

printf("Enter second number - ");

scanf("%d",&two);

sub = one - two;

printf("The subtraction of numbers %d and %d is %d",one,two,sub);

getch();

//End of the program.

You might also like