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 does return 1 means in c?
What are different types of operators?
What does emoji p mean?
Using which language Test cases are added in .ptu file of RTRT unit testing???
What is file in c language?
What is advantage of pointer in c?
Do array subscripts always start with zero?
what is event driven software and what is procedural driven software?
Explain modulus operator.
When should the register modifier be used? Does it really help?
A float occupies 4 bytes in memory. How many bits are used to store exponent part? since we can have up to 38 number for exponent so 2 ki power 6 6, 6 bits will be used. If 6 bits are used why do not we have up to 64 numbers in exponent?
Do variables need to be initialized?
How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?
write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?
What is the purpose of sprintf() function?