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

Trending Topics

Online now

Members online
1,104
Guests online
4,116
Total visitors
5,220

Forum statistics

Threads
2,354,188
Posts
29,382,595
Members
1,079,364
Latest member
AngasUngas
Back
Top