fork download
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. string places[2][5] = {
  6. {"Ahmedabad" , "Delhi" , "Mumbai" , "Banglor" , "Hariyana"},
  7. {"Newyork" , "Cleveland" , "Seattel" , "New-mexico" , "Sillicon"}
  8. };
  9. for(int i=0; i<2; i++) {
  10. for(int b=0; b<5; b++) {
  11. cout << places[i][b] << " , " << flush;
  12. }
  13. cout << endl;
  14. }
  15. return 0;
  16. }
Success #stdin #stdout 0s 3472KB
stdin
Standard input is empty
stdout
Ahmedabad , Delhi , Mumbai , Banglor , Hariyana , 
Newyork , Cleveland , Seattel , New-mexico , Sillicon ,