Guest User

Untitled

a guest
Jan 23rd, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. #include <iostream>
  2. #include <conio.h>
  3.  
  4. using namespace std;
  5.  
  6. int main ()
  7. {
  8.  
  9. cout<<"================================"<<endl;
  10. cout<<" Array dua dimensi"<<endl;
  11. cout<<"================================"<<endl<<endl<<endl;
  12.  
  13. int i,j;
  14. float x[3][4] = {
  15. {12.34,25.36,17.45,18.37},
  16. {15.15,18.05,11.25,55.55},
  17. {43.21,17.11,62.85,13.01}
  18. };
  19.  
  20. for (i=0; i<3; i++)
  21. {
  22. for (j=0; j<4;j++)
  23. cout<<x[i][j]<<" ";
  24. cout<<"\n\n";
  25. }
  26.  
  27. cout<<"\n";
  28. getch();
  29.  
  30. }
Add Comment
Please, Sign In to add comment