C Program to Subtract two given numbers

The C language is a structure oriented programming language, developed at Bell Laboratories in 1972 by Dennis Ritchie and Brian Kernighan.

see also : How to write Hello WorldAddition of Two Given Numbers in C

Download Tubo C from the following link - https://docs.google.com/file/d/0B0OYNqLoqKCWbkZLWnNTc1dNZk0/edit

Program to subtract two given numbers -


#include<stdio.h>
#include<conio.h>
int main()
{
int a,b,c;
clrscr();
printf("Enter the first number\n");
scanf("%d",&a);
printf("Enter the second number\n");
scanf("%d",&b);
c=a-b;
printf("After Subtraction = %d\n",c);
getch();
}




Comments

Popular posts from this blog

Artificial Intelligence

Biometrics

Smart Card