how can i find the largest of 3 numbers A,B, and C?

Use a for loop that goes up to 3
have a int "Largest"
set the Largest equal to A and then compare largest with A,B, and C in the for loop.
if any is larger than Largest, set Largest to the letter

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.