-
Expert Member
please eeeeeeeeeeeeeeee
Just give me an code that will read charactrs from the console untill # is given and displayed them after #is hit. /* it's urgent please it will take your few minutes to type the code*/
-
Junior Member
Re: please eeeeeeeeeeeeeeee
using getchar fun u can write this program.
-
Expert Member
Re: please eeeeeeeeeeeeeeee
#include <stdio.h>
int main(void)
{
char ch;
ch = getchar(); /* read a char */
printf("("Enter characters, '#' to quit."); );
}
do {
c =getch();
printf("%c,c);
} while(c != '#');
}
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules