Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <conio.h>
- using namespace std;
- int main ()
- {
- cout<<"================================"<<endl;
- cout<<" Array dua dimensi"<<endl;
- cout<<"================================"<<endl<<endl<<endl;
- int i,j;
- float x[3][4] = {
- {12.34,25.36,17.45,18.37},
- {15.15,18.05,11.25,55.55},
- {43.21,17.11,62.85,13.01}
- };
- for (i=0; i<3; i++)
- {
- for (j=0; j<4;j++)
- cout<<x[i][j]<<" ";
- cout<<"\n\n";
- }
- cout<<"\n";
- getch();
- }
Add Comment
Please, Sign In to add comment