🔒 Closed C language

Status
Not open for further replies.
C:
#include <stdio.h>

int main() {
    int i, j;
    int maxRows = 5;
    for(i = 1; i <= maxRows; i++){
        for(j = 1; j <= i; j++){
            printf("%d ", j);
        }
        printf("\n");
    }
    return 0;
}
 
Status
Not open for further replies.

About this Thread

  • 3
    Replies
  • 257
    Views
  • 3
    Participants
Last reply from:
zacha

Trending Topics

Online now

Members online
456
Guests online
2,278
Total visitors
2,734

Forum statistics

Threads
2,331,976
Posts
29,261,528
Members
1,147,959
Latest member
v69
Back
Top