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 / sandeep
Guys '&' is missing in the scanf statement
Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
Why does everyone say not to use scanf? What should I use instead?
Why do we write return 0 in c?
How do you list files in a directory?
what is the c source code for the below output? 5555555555 4444 4444 333 333 22 22 1 1 22 22 333 333 4444 4444 5555555555
How can I open files mentioned on the command line, and parse option flags?
Find duplicates in a file containing 6 digit number (like uid) in O (n) time.
the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?
Why C language is a procedural language?
How can I invoke another program or command and trap its output?
What is structure pointer in c?
What is const volatile variable in c?
Which header file should you include if you are to develop a function which can accept variable number of arguments?
What is pragma c?
What are keywords c?
What is the size of structure in c?