Rabu, 07 Maret 2012

program menampilkan identitas C++


prt sc

tugas pendahuluan
Ahmad khamdi musthofa
klompok A2

#include <iostream.h>
#include <string.h>
int main()
{
char info [100];
strcpy( info," >> labolatorium simulasi <<");
cout << info ;
cout <<"\n";
strcpy( info,"________________________________________");
cout << info ;
cout <<"\n" ;
strcpy( info," NPM           :03.2011.1.06825");
cout << info ;
cout <<"\n" ;
strcpy( info," Nama          :Ahmad Khamdi Musthofa");
cout << info ;
cout <<"\n" ;
strcpy( info," Fakultas      :Teknologi Industri");
cout << info ;
cout <<"\n" ;
strcpy( info," Jurusan       :Teknik Elektro");
cout << info;
cout <<"\n";
strcpy( info,"________________________________________");
cout << info ;

return 0;
}

Tidak ada komentar:

Posting Komentar