Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<string.h>
- using namespace std;
- int main(){
- char text[100];
- cout << "\t Konversi Huruf Besar ke Kecil / Sebaliknya\n\n";
- cout << " Masukkan Text : ";
- cin >> text;
- strlwr(text); // untuk konversi ke kecil
- cout << "\n Konversi ke Huruf Kecil : " << text << endl;
- strupr(text); // untuk konversi ke besar
- cout << " Konversi ke Huruf Besar : " << text;
- }
Advertisement
Add Comment
Please, Sign In to add comment