Skip to content

Instantly share code, notes, and snippets.

@HomenSimpsor
Last active August 29, 2015 13:58
Show Gist options
  • Save HomenSimpsor/10437198 to your computer and use it in GitHub Desktop.
Save HomenSimpsor/10437198 to your computer and use it in GitHub Desktop.
#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