Computer Science, asked by jhnistha8218, 5 months ago

write a program to input three numbers and print the largest among them.​

Answers

Answered by heenakhanA
3

Answer:

Below is the C program to find the largest among the three numbers: Example 1: Using only if statements to find the largest number. printf ( "%d is the largest number." , B); if (C >= A && C >= B)

Explanation:

mark me as a brainliest

and also gave me a thanks

and follow me also

Answered by Anshu33845
3

Answer:

#include <stdio.h>

#include <conio.h>

int main()

{

clrscr();

int number[3];

int i;

printf ("Enter the three numbers:\n");

for (i=0; i<3; i++)

{

scanf ("%d", &number[i] );

}

int large_number = 0;

for (i=0; i<3; i++)

{

if( number[i] > large_number)

{

large_number = number[i];

}

}

printf ("Largest Number among them : %d", large_number);

getch();

}

Hope! You will understand.

Attachments:
Similar questions