C Programming
C Programming

Input age and physical health and print eligibility for riding bike and scooty, JAVA program , C program , if else program , nested if else program , ladder if else program

Input age and physical health and print eligibility for riding bike and scooty, JAVA program , C program , if else program , nested if else program , ladder if else program

C Programming
C Programming

Input age and physical health and print eligibility for riding bike and scooty, JAVA program , C program , if else program , nested if else program , ladder if else program

 

#include <stdio.h>

int main() {

    

    int age,PhysicalHealth;

    printf("Enter your age : ");

    scanf("%d",&age);

    printf("Enter 0 if your physica health is not good & 1 if your physical health is ok : ");

    scanf("%d",&PhysicalHealth);

    

    if(PhysicalHealth==0 || PhysicalHealth == 1)

    {

        if (age >= 18)

        {

            if(PhysicalHealth==0)

            {

                printf("Can ride SCOOTY");

            }

            else

            {

                printf("Can ride BIKE");

            }

        }

        else

        {

            printf("Not Eligible");

        }

    }

    else

    {

        printf("INVALID INPUT");

    }

    

    return 0;

}



 


 

Topics Covered :

  • programming
  • c programming course
  • c programming language
  • c programming language tutorial
  • c (programming language)
  • c tutorial
  • arrays
  • c course
  • c programming language tutorial for beginners
  • programming language (software genre)
  • for loop
  • pointers
  • examples
  • literals
  • tutorial
  • functions
  • data types
  • user input
  • structures
  • while loop
  • do while loop
  • loops
  • switch
  • beginners

 


 

 


 

Thanks for reading this blog. Hope you get satisfied with the blog and definitely this blog must have valued your time and effort of reading.

Take a time to connect our other digital creations such as Instagram , Facebook and Youtube.

 

🧑‍💻🧑‍💻 Social Media Links of Tech DCode :

👉🏻 YouTube : https://www.youtube.com/channel/UCjJnEdeugftBwQ3yMuD4B_A
👉🏻 Instagram : https://www.instagram.com/thetechdcode/
👉🏻 Facebook Page : https://www.facebook.com/thetechdcode
👉🏻 Twitter : https://twitter.com/thetechdcode
👉🏻 Telegram Channel : https://t.me/thetechdcode
👉🏻 Tech DCode Linktree : https://linktr.ee/thetechdcode
👉🏻 My Personal Handles : https://linktr.ee/virtualshivamin

🧑‍💻🧑‍💻 Social Media Links of SHIVAM SINGH (OWNER) :

👉🏻 Instagram : https://www.instagram.com/virtualshivamin/
👉🏻 Facebook Page : https://www.facebook.com/virtualshivamin/
👉🏻 Twitter : https://twitter.com/virtualshivamin/
👉🏻 Personal Linktree : https://linktr.ee/virtualshivamin 

 

One comment

Leave a Reply

Your email address will not be published. Required fields are marked *