[code language="c"] #include#include using namespace std; int main(int argc, char *argv[]) { int N; // num rows int M; // num columns scanf("%d %d",&N,&M); for (int j = 0;j < N;j++) { for (int i = 0;i < M;i++) { printf("*"); } printf("\n"); } return EXIT_SUCCESS; } [/code]
- Log in to post comments