Monday, January 4, 2010

Program to show input and output of a string.


#include
#include

void main()
{
char a[50];
clrscr();
printf("enter any string: ");
gets(a);
puts(a);
getch();
}


Output:
enter any string: hi everyone
hi everyone

 

No comments:

Post a Comment