If you want to make money online : Register now

C program segment to genrate pattern

, , No Comments

#include<stdio.h>
int main()
{
    int i,j;
    
    for(i=1; i<5; i++)
    {
        for(j=0; j<i; j++){
            printf("*");
        }
        printf("\n");
    }
    
    return i;
    
    
    
}

0 comments:

Post a Comment