fork download
  1. program test;
  2.  
  3. var
  4. total: Integer;
  5. num: Integer;
  6. left: Integer;
  7.  
  8. Begin
  9. total:= 100;
  10. WriteLn('Total is: ',total);
  11. WriteLn('Enter a number!');
  12. ReadLn(num);
  13. if num > 100 then WriteLn('The number you entered is too big');
  14. left:= total - num;
  15. WriteLn(left, ' Left');
  16.  
  17. End.
Success #stdin #stdout 0.01s 252KB
stdin
Standard input is empty
stdout
Total is: 100
Enter a number!
100 Left