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
What is the use of ?
What header files do I need in order to define the standard library functions I use?
Can a pointer be volatile in c?
Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list)
Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.
What are the 32 keywords in c?
What is a const pointer in c?
What is the use of clrscr?
How can you increase the allowable number of simultaneously open files?
What was noalias and what ever happened to it?
How many types of arrays are there in c?
Synonymous with pointer array a) character array b) ragged array c) multiple array d) none
Here is a neat trick for checking whether two strings are equal
Explain about the constants which help in debugging?
What is scope of variable in c?