Solution for Exercise 10-4
ex1004
#include <stdio.h>
/* Display prompt */
void prompt(void)
{
printf("C:\\DOS> ");
}
int main()
{
int loop;
char input[32];
loop=0;
while(loop<5)
{
prompt();
fgets(input,31,stdin);
loop=loop+1;
}
return(0);
}
Copyright © 1997-2025 by QPBC.
All rights reserved
