fork download
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. string Richestperson[4][5]= {
  6. {"Bandish Shah", "Bill Gates", "Warren Buffet", "Carloss Slim", "Vlandimir Putin"},
  7. {"Amancio Gaona", "Larry Ellison", "Charles Koch", "David Koch", "Ingvar Kamprad"},
  8. {"Christy Walton", "Robson Walton", "Alice Walton", "Michael Bloomberg", "Bernard Arnault"},
  9. {"Mark Zuckerberg", "Stefan Persson", "King of Thiland", "Prince Alsaud", "Larry Page"}
  10. };
  11. for(int i=0; i<4; i++) {
  12. for(int b=0; b<5; b++) {
  13. cout << Richestperson[i][b] << " , " << flush;
  14. }
  15. cout << endl;
  16. }
  17. return 0;
  18. }
Success #stdin #stdout 0s 3432KB
stdin
Standard input is empty
stdout
Bandish Shah , Bill Gates , Warren Buffet , Carloss Slim , Vlandimir Putin , 
Amancio Gaona , Larry Ellison , Charles Koch , David Koch , Ingvar Kamprad , 
Christy Walton , Robson Walton , Alice Walton , Michael Bloomberg , Bernard Arnault , 
Mark Zuckerberg , Stefan Persson , King of Thiland , Prince Alsaud , Larry Page ,