Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

int main ( ) { /* Variable declarations */ int input, i , j ; /* Prompt the user

ID: 3537198 • Letter: I

Question


  1. int
    main()
  2. {
  3.   /* Variable declarations */
  4.   int input, i , j;
  5.   /* Prompt the user for input */
  6.   printf("Enter an integer: ");
  7.   scanf("%d", &input);
  8.   for (i = 1; i <= input; i++) {
  9.   for (j = 1; j <= i; j++) {
  10.   printf("%d ", i);
  11.   }
  12.   printf(" ");
  13.   }
  14. }
    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