Last active
August 29, 2015 13:58
-
-
Save HomenSimpsor/10437198 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
void subtract(float, float); /* the function prototype */ | |
int main() | |
{ | |
void MAXCOUNT(float, float); /* the function prototype */ | |
float num1, num2; /* functions for finding the MAXCOUNT*/ | |
printf("\nFirst number is required:"); | |
scanf("%f", &num1); | |
printf("\nNeed a second number:"); | |
scanf("%f", &num2); | |
subtract(num1, num2); | |
return 0; | |
} | |
/* the next function find the Subtraction */ | |
void subtract(float num1, float num2) /* second function */ | |
{ | |
float result; | |
num1 = 4; | |
num2 = 1; | |
result = num1 - num2; | |
printf("\nThe result is %f", result); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment