langsung saja ane bagikan buat temen-temen :
#include<iostream.h>
#include<conio.h>
#include<stdio.h>
void main (){
char nama[4][3][10];
int i,j,k;
for (k=1;k<=3;k++)
{for (i=1;i<=2;i++)
if (i==1)
{
cout<<"masukkan Nama Dosen : ";gets(nama[k][i]);
}
else{
cout<<"masukkan Mapel : ";gets(nama[k][i]);
}
}
cout<<"\n\n Berikut Daftar Nama Dosen : \n";
for (k=1;k<=3;k++)
{for (i=1;i<=2;i++)
if (i==1)
{
cout<<"masukkan Nama Dosen : "<<nama[k][i];
}
else{
cout<<"\n masukkan Mapel : "<<nama[k][i]<<"\n";
}
}
cout<<"\n";
cout<<endl;
getch;
}
Friday, 7 November 2014
Author: wardana
Etiam at libero iaculis, mollis justo non, blandit augue. Vestibulum sit amet sodales est, a lacinia ex. Suspendisse vel enim sagittis, volutpat sem eget, condimentum sem.
0 komentar: