fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int row,col;
  7. for(row=1;row<=5;row=row+1)
  8. {
  9. for(col=1;col<=5;col=col+1)
  10. cout<<"*"<<" ";
  11. cout<<endl;
  12. }
  13.  
  14.  
  15. return 0;
  16. }
Success #stdin #stdout 0.01s 5284KB
stdin
Standard input is empty
stdout
* * * * * 
* * * * * 
* * * * * 
* * * * * 
* * * * *