What's new

C language

zacha

Forum Veteran
Established
Joined
Sep 5, 2021
Posts
777
Reaction
56
Points
685
1654159849070.png
 

Attachments

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;
}
 
Last edited:

Similar threads

Back
Top