I have this:
if i give an integer (7, 56,8..), it prints the message and it's waiting for a new entry. OKCode:#include <stdio.h> main() { int d,choice; printf("gIVE 1 or 2 or 3 or 4 or 5 \n "); do{ scanf("%d",&choice); if(choice!=1 && choice!=2 && choice!=3 && choice!=4 && choice!=5) printf("Plz, becareful "); }while(choice!=1 && choice!=2 && choice!=3 && choice!=4 && choice!=5); }
if i give a character, it prints the message continuesly! why????????
thx!