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?
Answers were Sorted based on User's Feedback
Answer / 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 |
Explain Linker and Loader
What are dangling pointers?
What are type modifiers in c?
write a program to fined second smallest and largest element in a given series of elements (without sorting)
Write a program that takes a 5 digit number and calculates 2 power that number and prints it
5 Answers ABS, Accenture, HCL, Infosys, Infotech, SoftSolve, Software India, TCS, Vertex, Vimukti Technologies,
Write a program to show the workingof auto variable.
What is pre-emptive data structure and explain it with example?
Explain what does the function toupper() do?
how many times does the loop iterated ? for (i=0;i=10;i+=2) printf("Hi\n");
Why c is called free form language?
What is the purpose of type declarations?
What is the output for the below program? void main() { float me=1.1; double you=1.1; if(me==you) printf("love c"); else printf("know c"); }