Advance Programs On For LoopLearn C ProgrammingLearn ProgrammingLoop Control StructuresResources

056. Write a program to print following output

By September 18, 2012 August 8th, 2019 No Comments

#include<stdio.h>
#include<conio.h>  
main()
{
        int i, j;
        clrscr();
        printf("╔");
        for(i=2;i<=79;i++)
                printf("═");
        printf("╗");
        for(i=2;i<=24;i++)
        {
                printf("║");
                for(j=2;j<=79;j++)
                        printf(" ");
                printf("║");
        }
        printf("╚");
        for(i=2;i<=79;i++)
                printf("═");
        printf("╝");
 
        getch();
}

Leave a Reply

DEMO01