🔒 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
  • 246
    Views
  • 3
    Participants
Last reply from:
zacha

Online now

Members online
1,088
Guests online
1,230
Total visitors
2,318

Forum statistics

Threads
2,275,747
Posts
28,965,158
Members
1,231,916
Latest member
phercykelsss
Back
Top