Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //input
- #include <stdio.h>
- #include <stdbool.h>
- #include "calc.h"
- //start of input()
- float input(float n){
- bool x=false;
- while(x==false){
- scanf("%lf",&n);//input
- x=unusualFlow(n);
- if(x==false)
- puts("Invalid Input, Too Large or Too Small. Enter again.");
- }//end of while loop
- return n;//returns n
- }//end of input()
Add Comment
Please, Sign In to add comment