//WAP TO TRAVERSE A STRING.
#include<stdio.h>
#include<conio.h>
void main()
{
char str[20];
clrscr();
puts("ENTER THE STRING:");
gets(str);
puts("\n\nENTERED STRING IS");
puts("\n\n");
puts(str);
getch();
}
/*----------------------------------------------
OUTPUT
-----------------------------------------------
ENTER THE STRING:
ABHISHEK WADHWA
ENTERED STRING IS
ABHISHEK WADHWA
*/
No comments:
Post a Comment