Anda di halaman 1dari 1

TUGAS TAMBAHAN

MERUBAH VOCAL KATA #include <iostream> using namespace std; int main() { char *nama = "komputer"; char n; int l; cout <<"kata sebelum vocal dirubah" <<endl <<nama <<endl <<endl; cout <<"kata setelah vocal dirubah"<<endl; for (l=0;l<=7;l++) { n = *(nama+l); { if (n == 'a') n = 'o'; if (n == 'i') n = 'e'; if (n == 'u') n = 'i'; if (n == 'e') n = 'a'; if (n == 'o') n = 'u'; } cout <<n; } cout <<endl; return 0; }