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 / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do pointers need to be initialized?

1098


Explain what are the advantages and disadvantages of a heap?

1094


Which node is more powerful and can handle local information processing or graphics processing?

1332


What is 2c dna?

1093


How to write a multi-statement macro?

1057


What is variable in c example?

1085


What is the difference between ā€˜g’ and ā€œgā€ in C?

4026


hi, which software companys will take,if d candidate's % is jst 55%?

2098


Write program to remove duplicate in an array?

1093


What is the difference between procedural and functional programming?

1088


what are bit fields? What is the use of bit fields in a structure declaration?

2143


Why do we use c for the speed of light?

1222


What are the two types of functions in c?

1024


Can main () be called recursively?

1130


A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference

1118