🔒 Closed C language

Status
Not open for further replies.

zacha

Forum Veteran
1654159849070.webp
 
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
  • 248
    Views
  • 3
    Participants
Last reply from:
zacha

Trending Topics

Online now

Members online
538
Guests online
1,432
Total visitors
1,970

Forum statistics

Threads
2,286,439
Posts
29,037,765
Members
1,217,951
Latest member
lolpops
Back
Top