Computer Science, asked by vdjit, 1 year ago

Algorithm to find largest 3 number

Answers

Answered by parwatipanicker
1

Answer:

Explanation:

#include <stdio.h>  

 

int main()  

{  

   int A, B, C;  

 

   printf("Enter the numbers A, B and C: ");  

   scanf("%d %d %d", &A, &B, &C);  

 

   if (A >= B && A >= C)  

       printf("%d is the largest number.", A);  

 

   if (B >= A && B >= C)  

       printf("%d is the largest number.", B);  

 

   if (C >= A && C >= B)  

       printf("%d is the largest number.", C);  

 

   return 0;  

}


parwatipanicker: hey their
parwatipanicker: hope it helps dude
parwatipanicker: mark me as brainlist
Similar questions