Contoh Program >>>
#include <stdio.h>>>> KLIK DOWNLOAD <<<
#include <conio.h>
#include <string.h>
#include <iostream>
using namespace std;
int main()
{
system ("color a");
char nama[20];
char gender[20];
cout<<endl<<endl;
cout<<"\t ---------------- Latihan 1 ---------------- "<<endl<<endl;
cout<<"\t Masukkan Nama dengan CAPITAL : "; gets(nama);
cout<<endl;
cout<<"\t Masukkan Gender dengan HURUF KECIL : "; gets(gender);
cout<<endl;
//system("cls"); <<< hapus tanda ( // )
strlwr(nama);
strupr(gender);
cout<<endl<<endl;
cout<<"\t ---------------- Latihan 1 ---------------- "<<endl<<endl;
cout<<"\t Hasil Perubahan NAMA : "<<nama<<endl;
cout<<"\t Hasil perubahan GENDER : "<<gender<<endl;
}
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
0 Response to "Program Dev C++ Mengubah huruf Besar ke Kecil"
Post a Comment