Thursday, November 7, 2019

                                      E-BOX    

                                 BASICS OF C PROGRAMMING   

Conditional Statements :-  Code Analysis

 PROBLEM  - 7

                                                              Blood bank

              A team from Rotract club had planned to conduct a rally to create awarness among the people of coimbatore to donate blood. The rally was comducted successfully . Many of the coimbatore people realized it and came forward to donate their blood to the near by blood bank.  The eligibility criteria for donating blood is people should be above 18 and his/ her weight should be above 40. There was a huge crowd and the staff in blood bank found it difficult to manage the crowd. So they decided to keep a system and ask the people to enter their age and weight in system. If the person is eligible he / she will be allowed inside.

Write a  program and  feed it to  the system  to find whether a person is eligible or not.

Input Format:

Input consists of two integers which corresponds to age and weight of a person respectively.

Output Format :

Display whether the person is eligible or not.

Sample input and output 1:

[All text in bold corresponds to input and the rest corresponds to output]

Age:

19

Weight:

50

Eligible to donate.

Sample input and output 2:

Age:

17

Weight:

50

Not Eligible to donate.


SOLUTION :



No comments:

Post a Comment

                                                 E-BOX                                                     BASICS OF C PROGRAMMING       i -...

https://amzn.to/2LAmadv