ChaturBauka

input.c

Jan 8th, 2019
44
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //input
  2. #include <stdio.h>
  3. #include <stdbool.h>
  4. #include "calc.h"
  5. //start of input()
  6. float input(float n){
  7.   bool x=false;
  8.   while(x==false){
  9.   scanf("%lf",&n);//input
  10.   x=unusualFlow(n);
  11.   if(x==false)
  12.     puts("Invalid Input, Too Large or Too Small. Enter again.");
  13.   }//end of while loop
  14.   return n;//returns n
  15. }//end of input()
RAW Paste Data