Friday, 28 August 2020

Subtraction using function.

    This post is about how to subtract using function.

#include<stdio.h>
#include<conio.h>
void sub()
{
int x,y,z;
clrscr();
printf("Enter the number\n");
scanf("\n%d%d",&y,&z);
x=y-z;
printf("The result of Subtraction=%d\n",x);
}
void main()
{
sub();
getch();
}

Try this program and enjoy!!!

No comments:

Post a Comment

C Programming

What is DBMS in brief?

A Database Management System (DBMS) is a software suite designed to efficiently manage, organize, store, manipulate, and retrieve data. It a...