Search This Blog

Loading...

Write a C program that prints your name in the four corner of the screen.

#include<stdio.h>
#include<conio.h>

void main()
{
    clrscr();

    printf("Your Name");      
    printf("\t\t\t...\t Your Name");        // print the name in upper right corner.
    printf("\n\n\n...\n Your name");     // print the name in bottom left corner.
    printf("\t\t\t...\t Your Name");        // print the name in bottom right corner.

    getch();
}

No comments:

Post a Comment