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
If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?
write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);
How do we declare variables in c?
Write a code on reverse string and its complexity.
How we can insert comments in a c program?
What are the different types of endless loops?
What are the 4 types of functions?
What is pre-emptive data structure and explain it with example?
What is the use of the function in c?
What are type modifiers in c?
What is typedef struct in c?
What is sizeof array in c?
A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.
Explain what is the benefit of using enum to declare a constant?
pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice)