Advertisement
juliarnasution

tampilkan nama hewan c++

Nov 2nd, 2019
611
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.38 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. main(){
  4.     char h=0, nama[4][3][13];
  5.     cout<<"Masukkan daftar nama : \n\n";
  6.     for(int s=0; s<3; s++){
  7.         cin >> nama [4][3][13];
  8.     }
  9.     for(int i=0; i<4; i++){
  10.         cout<<"Kelompok "<< h+1;
  11.         for(int s=0; s<3; s++){
  12.             cout<<s+1 << "." <<nama[i][s];
  13.         }
  14.         h++;
  15.         cout<<"\n";
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement