Advertisement
wyndy

Program grade Nilai 0-99

Oct 21st, 2014
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. uses crt;
  2. var
  3. n:integer;
  4. hasil: string;
  5. begin
  6. clrscr;
  7. write('Nilai: ');readln(n);
  8. if (0<=n) and (n<=49) then
  9. hasil:='E'
  10. else if (50<=n) and (n<=59) then
  11. hasil:='D'
  12. else if (60<=n) and (n<=69) then
  13. hasil:='C'
  14. else if (70<=n) and (n<=79) then
  15. hasil:='B'
  16. else if (80<=n) and (n<=99) then
  17. hasil:='A'
  18. else
  19. hasil :='nilai yang anda tidak diantara 0 - 99';
  20. writeln('Hasil: ',hasil);
  21. readln;
  22.  
  23.  
  24.  
  25. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement