Header Ads

Learn Together, Stay Connected.

ফাঁকা বাক্স প্রিন্ট করা-C


#include <stdio.h>

int main()
{
    int i;
    for(i=1;i<=7;i++)
    {
        for(int j=1;j<=7;j++)
        {
            if(i==1 || i==7)
            {
               printf("*");   
            }
            else if(j==1 || j==7 || (j==4 && i==4))
            {
                printf("*");
            }
            else
            {
                printf(" ");
            }
        }
        if(i!=7)
        {
            printf("\n");  
        }
       
        
    }

return 0;
}

No comments

Theme images by Dizzo. Powered by Blogger.