r/C_Programming • u/UsualLonely4585 • May 29 '26
Question HELP!!!!
while(1){
if(scanf(" %d",&input_choice)==1){
break;
};
while(1){
if(getchar()=='\n'){
break;
}
}
};
Guys what am i doing wrong can you please tell me .
i am sorry if i am asking very basic thing . i read some documentation online but couldn't figure out what is going wrong
0
Upvotes
View all comments
Show parent comment
1
u/Level-Pollution4993 May 29 '26
yes. I dont understand why you used it? Can you explain to me like arubber duck?Yes you are correct, Im dumb. Wait