Thursday 6 September 2012

/* --- Program on Reading & Writing of Line of Text --- */


#include <stdio.h>
#include <conio.h>
main()
{
    char line[100];

    clrscr();
    gotoxy(15,2);
    printf("Program to Read and Write a Line of Text\n");
    gotoxy(5,5);
    printf("Enter a Line of Text : ");
    gets(line);
    gotoxy(5,7);
    printf("Your Line of Text is : %s",line);
    getch();
}

No comments:

Post a Comment