For m = 6 and n = 5, write a C++ code to accomplish the above
/******************************************************************************
For m = 6 and n = 5, write a C++ code to accomplish the above
*******************************************************************************/
#include <iostream>
using namespace std;
int main()
{
int m=6;
int n=5;
for(int i=0;i<m;i++){
for(int j=0;j<n;j++){
cout<<"*";
}
cout<<endl;
}
return 0;
}
Comments
Leave a comment