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 whats wrong in this program? is it right?
Answer Posted / hajera
1. & is missing in scanf and
2. if(days=30) one more equal is missing
instead of if(days == 30)
printf("membership cancelled")
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Do pointers need to be initialized?
Explain what are the advantages and disadvantages of a heap?
Which node is more powerful and can handle local information processing or graphics processing?
What is 2c dna?
How to write a multi-statement macro?
What is variable in c example?
What is the difference between āgā and āgā in C?
hi, which software companys will take,if d candidate's % is jst 55%?
Write program to remove duplicate in an array?
What is the difference between procedural and functional programming?
what are bit fields? What is the use of bit fields in a structure declaration?
Why do we use c for the speed of light?
What are the two types of functions in c?
Can main () be called recursively?
A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference