marcus2vinicius

P1 Prova Exerci Net

Sep 15th, 2011
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.29 KB | None | 0 0
  1. program p1;
  2. var a, b : integer;
  3. divisao: real;
  4. begin
  5. writeln;
  6. write ('Digite um valor inteiro: ');
  7. readln (a);
  8. repeat
  9. write ('Digite outro valor inteiro: ');
  10. readln (b);
  11. until b <> 0;
  12. divisao := a/b;
  13. writeln ('A divisao do primeiro valor pelo segundo eh: ', divisao:5:2);
  14. writeln;
  15. end.
Advertisement
Add Comment
Please, Sign In to add comment