Actually, I have no idea why you use a loop here. It might be appropriate for an array using, say, bubble sort on an arbitrary number of values; however, here you have only 3.
That aside, consider your line: for (int r = 0; r == 3 ; r++)
You start the loop by setting r equal to 0.
As written, the loop will run ... if r equals 3 ... but it can't equal 3 because you set it equal to 0. So the loop won't run.
I suspect you intended to use < somewhere, rather than ==.
At present, in this forum the code tags don't seem to work for new input (although they do work if you go back and edit your post). It would, however, aid readability if you indented code blocks.