#include <conio.h> |
int main ( void ) |
{ |
char string[80]; |
/* clear the screen */ |
clrscr(); |
/* Prompt the user for input */ |
cprintf ( "Enter a string with no spaces:" ); |
/* read the input */ |
cscanf ( "%s" , string ); |
/* display what was read */ |
cprintf ( "\r\nThe string entered is: %s" , string ); |
return 0; |
} |