int A,B,C 3 variables is there.when we are giving input values of these three variables..How to find the largest number. pls send some logic of the code.

Originally posted by rk chowdary: int A,B,C 3 variables is there.when we are giving input values of these three variables..How to find the largest number. pls send some logic of the code.

Here's a crude way to do it: Logic: int a = arg[0] int b = arg[1] int c = arg[2]

int largest = a if (b> largest) {largest =b} if (c > largest) {largest = c} print largest.