C Program to Subtract Two Numbers Using Function

program:
#include<stdio.h>
int subtract ()
{
	int subtract, a, b;
	printf("Enter The First Number: ");
	scanf(" %d", &a);
	printf("Enter The Second Number: ");
	scanf(" %d", &b);
	subtract = a-b;
	printf("subtract=%d",subtract );
}
int main()
{
subtract ();
return 0;
}
output

:
Previous Post Next Post