HR Interview
Interview
undefined
int main() {
int days;
printf("enter days you are late"); scanf("%d",days);
if (days<=5)
printf("5o paisa fine");
if (days<=10&&days>=6)
printf("1rs fine");
if(days>10)
printf("10 rs fine");
if(days=30)
printf("membership cancelled");
return 0;
}
tell me what's wrong in this program? is it right?
Read Solution (Total 2)
-
- you need to put ampersand (&) in scanf("%d",&days); and if(days==30)
- 9 years agoHelpfull: Yes(2) No(0)
- There is one mistake
scanf("%d",&days); - 9 years agoHelpfull: Yes(0) No(0)
HR Interview Other Question