Advertisement
depict

isvokal

Oct 4th, 2015
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. program isvokal;
  2. {program yang menghasilkan true jika character yang dimasukan adalah vokal}
  3.  
  4. {kamus}
  5. var
  6. huruf : char;
  7.  
  8. {algoritma}
  9. begin
  10. write('Masukkan huruf kecil: '); readln(huruf);
  11. case huruf of
  12. 'a' : writeln(huruf = 'a');
  13. 'i' : writeln(huruf = 'i');
  14. 'u' : writeln(huruf = 'u');
  15. 'e' : writeln(huruf = 'e');
  16. 'o' : writeln(huruf = 'o');
  17. else
  18. writeln(huruf = 'a');
  19. end;
  20. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement