- Click File
- Click New
- Put code below
- Code:
#include <iostream>
#include <windows.h>
#include <conio.h>
int main()
{
HANDLE hConsole; //change text color
hConsole = GetStdHandle (STD_OUTPUT_HANDLE); //change text color
SetConsoleTextAttribute //change text color
(hConsole, FOREGROUND_BLUE | FOREGROUND_INTENSITY); //change text color
clrscr();
char nim [20],nama [20],kelas [20],n_angka [20];
clrscr();
gotoxy(18,2);cout<<"DATA MAHASISWA:\n\n";
cout<<"\nInclude NIM\t\t: ";cin>>nim;
cout<<"\nInclude Name\t\t: ";cin>>Name;
cout<<"\nInclude Class\t\t: ";cin>>Class;
cout<<"\nInclude Up Number\t: ";cin>>n_number;
SetConsoleTextAttribute //change text color
(hConsole, FOREGROUND_GREEN | FOREGROUND_INTENSITY); //change text color
gotoxy(18,11);cout<<"\n\n\n\t\tInclude data:\n";
cout<<"\nNIM\t\t: ";cout<<nim;
cout<<"\nName\t\t: ";cout<< name;
cout<<"\nClass\t\t: ";cout<< class;
cout<<"\nNumber Value\t: ";cout<< n_number;
getch();
return 0;
}
- Show your Creativity now