Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What does return 1 means in c?

1073


What are different types of operators?

1045


What does emoji p mean?

1121


Using which language Test cases are added in .ptu file of RTRT unit testing???

4288


What is file in c language?

1010


What is advantage of pointer in c?

1193


Do array subscripts always start with zero?

1307


what is event driven software and what is procedural driven software?

2585


Explain modulus operator.

1063


When should the register modifier be used? Does it really help?

970


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?

2318


Do variables need to be initialized?

1060


How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?

1114


write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?

2139


What is the purpose of sprintf() function?

1133