Untitled

mail@pastecode.io avatar
unknown
plain_text
10 days ago
318 B
5
Indexable
Never
#include <Stdio.h>

void Pattern(int r {
    int i, N = 1, j;
    for (i = 1; i <= r; I++) {
        for (J = 1; j <= i; j++) 
            Printf("%c ", N++);
        printf("\n"  
    }
    
    prinft("Pattern complete.\n");  
}

int Main() {
    int n = 4
    Pattern(n);  
    
    Return 0  
}
Leave a Comment