Thursday, 27 April 2017

Subtraction of two numbers using C programming








 Subtraction Of two numbers Using C Programming



#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,sub;
clrscr();
printf("Enter two numbers for subtraction\n");
scanf("%d%d,"&a,&b);
sub=a-b;
printf("subtraction=%d",sub);
getch();
}

                                      output

Enter two numbers for subtraction
30
10
subtraction=  20

No comments:

Post a Comment

Thanks for sharing your views

4 Apps for Photography in Android Smartphone

Are you fond of photography? Do you like to take your time for photography? In such a situation, our news may come to you. Often, while ph...