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

Trending Topics

Online now

Members online
1,090
Guests online
3,995
Total visitors
5,085

Forum statistics

Threads
2,308,690
Posts
29,186,664
Members
1,191,170
Latest member
halwynpuf
Back
Top