Hello there,
You have not mentioned the programming language name. So, below I am illustrating this code in C language.
#include <stdio.h>
int main()
int
main()
{
int A, B, C;
A, B, C;
printf ( "Enter the numbers A, B and C: " );
printf
(
"Enter the numbers A, B and C: "
);
scanf ( "%d %d %d" , &A, &B, &C);
scanf
"%d %d %d"
, &A, &B, &C);
if (A >= B && A >= C)
if
(A >= B && A >= C)
printf ( "%d is the largest number." , A);
"%d is the largest number."
, A);
if (B >= A && B >= C)
(B >= A && B >= C)
printf ( "%d is the largest number." , B);
, B);
if (C >= A && C >= B)
(C >= A && C >= B)
printf ( "%d is the largest number." , C);
, C);
return 0;
return
0;
}
Regular exam updates, QnA, Predictors, College Applications & E-books now on your Mobile