Thursday 6 September 2012

/* ------- Program on Reading & Writing of Strings ------- */


#include <stdio.h>
#include <conio.h>
main()
{
    char name[15],day[10];

    clrscr();
    gotoxy(15,2);
    printf("Program to Read and Write Strings\n");
    gotoxy(5,5);
    printf("Enter your Name : ");
    scanf("%s",name);
    gotoxy(5,7);
    printf("Your Name is : %s",name);
    gotoxy(5,9);
    printf("Enter Week name of Today : ");
    scanf("%s",day);
    gotoxy(5,11);
    printf("Today is %s",day);
    getch();
}

No comments:

Post a Comment