Tuesday, 25 January 2022

Write a Program to Find Largest Number Among Three Numbers entered by users :-

MAIN PROGRAM :-

 #include <stdio.h>

int main()

{

  float a,b,c,large;

  printf("enter the 1st no=\n");

  scanf("%f",&a);

  printf("enter the 2nd no=\n");

  scanf("%f",&b);

  printf("enter the 3rd no=\n");

  scanf("%f",&c);

  

  if(a>b&&a>c)

  {

    large=a;

  }

  else if(b>a&&b>c)

  {

    large=b;

  }

  else

  {

    large=c;

  }

  printf("the largest number is=%f", large);

  

  return 0;

INPUT :-

               


OUTPUT :-





                                                      --THANKS FOR VISITING--

2 comments:

  1. i want to more coding . thanks sir

    ReplyDelete
    Replies
    1. Ok you can follow our website,
      thank you for comment...

      Delete

Infosys Process Executive Recruitment 2022 | Apply Now

  Infosys Process Executive Recruitment 2022 | Apply Now  Infosys Process Executive Recruitment 2022 |Infosys Recruitment 2022 | Work From H...