Berikut ScreenShoot Programnya:
Untuk Source : Download Disini
Code Programnya :
#include#include #include int main() { HANDLE hConsole; //memngganti warna teks hConsole = GetStdHandle (STD_OUTPUT_HANDLE); //memngganti warna teks SetConsoleTextAttribute //memngganti warna teks (hConsole, FOREGROUND_BLUE | FOREGROUND_INTENSITY); //memngganti warna teks clrscr(); char nim [20],nama [20],kelas [20],n_huruf [30]; float nilai; clrscr(); gotoxy(18,2);cout<<"DATA MAHASISWA:\n\n"; cout<<"\nMasukkan NIM\t\t: "; cin.getline(nim,30); cout<<"\nMasukkan Nama\t\t: "; cin.getline(nama,30); cout<<"\nMasukkan kelas\t\t: "; cin>>kelas; cout<<"\nMasukkan Nilai Ujian Anda\t: "; cin>>nilai; if (nilai>100) { strcpy(n_huruf,"Maaf Nilai Yang Anda Masukkan Salah"); } else if (nilai>=80) { strcpy(n_huruf,"A"); } else if (nilai>=65) { strcpy(n_huruf,"B"); } else if (nilai>=55) { strcpy(n_huruf,"C"); } else if (nilai>=45) { strcpy(n_huruf,"D"); } else { strcpy(n_huruf,"E"); } SetConsoleTextAttribute //memngganti warna teks (hConsole, FOREGROUND_GREEN | FOREGROUND_INTENSITY); //memngganti warna teks clrscr(); cout<<"\n\n\n\t\tPrint Hasil:\n"; cout<<"\nNIM\t\t: ";cout<