World's most popular travel blog for travel bloggers.

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

Let us know your responses and feedback