int main ( ) { /* Variable declarations */ int input, i , j ; /* Prompt the user
ID: 3537198 • Letter: I
Question
-
int main() - {
- /* Variable declarations */
- int input, i , j;
- /* Prompt the user for input */
- printf("Enter an integer: ");
- scanf("%d", &input);
- for (i = 1; i <= input; i++) {
- for (j = 1; j <= i; j++) {
- printf("%d ", i);
- }
- printf(" ");
- }
- }
NOTE: you can use GETC for scanf and OUT for printf
int main() { /* Variable declarations */ int input, i , j; /* Prompt the user for input */ printf("Enter an integer: "); scanf("%d", &input); for (i = 1; i <= input; i++) { for (j = 1; j <= i; j++) { printf("%d ", i); } printf(" "); } }
NOTE: you can use GETC for scanf and OUT for printf
Explanation / Answer
if nobody answers plz rate me plzzzzzz
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.