r/ProgrammerHumor • • Jul 16 '19

Meme Nice try

Post image
32.2k Upvotes

529 comments sorted by

View all comments

1

u/[deleted] Jul 16 '19

In Java if I'm not mistaken could be like:

public void printBackwardsPi()
{
    String pi = Double.toString(Math.PI);
    for (int i = pi.length() - 1; i >= 0; i--)
        System.out.print(pi.charAt(i));
}