Photobucket

Kamis, 20 Oktober 2011

JAWABAN Tugas ALgoritma dan Pemrograman 1 - STT PLN

L4P0134N P134KT1KUM

ni bahasa membuat program ny, tinggal pinter2 cara editnya aj y...

ntar yng di bawah ini ditulis d HVS seperti laporan akhir, tpi ada flowchart ama penjelasannya
OK?!
Jadi, Slamat mencoba...



#include<iostream.h>
#include<iomanip.h>
#include<conio.h>

void main()
{

char Nama[25];
char NIM[25];
char Kelas[1];
char Alamat[25];

cout<<"Masukkan Nama\t";
cin>>Nama;
cout<<" Masukkan NIM\t";
cin>>NIM;
cout<<"Masukkan Kelas\t";
cin>>Kelas;
cout<<"Masukkan Alamat\t";
cin>>Alamat;

clrscr ();


cout << "     Praktek Algoritma dan Pemrograman 1 \n";
cout <<"||============================================||"<<endl;
cout <<"||    Nama   |   Nim     |  Kelas  |  Alamat  ||"<<endl;
cout <<"||============================================||"<<endl;
cout <<"||                                            ||"<<endl;
cout <<"||"<<setw(7)<<Nama<<
"    |"<<setw(10)<<NIM<<
" |"<<setw(5)<<Kelas<<
"    |"<<setw(9)<<Alamat<<" ||"<<endl;
cout <<"||                                            ||"<<endl;
cout <<"||============================================||"<<endl;


}

0 komentar:

Posting Komentar

Related Posts Plugin for WordPress, Blogger...

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Best Buy Coupons