Hello world, compliant with both C89 and C99 would be as follows:
In Java it would be as follows:
Both languages have their purposes. Asking on a C forum is going to get you answers to learn C, unless they don't want you in the ranks of C programmers.
public class HelloWorld
public static void main(String a_szArgs)
And yes, you need some skill in math. Basic high school algebra is generally sufficient to get started and do quite a few things while learning the language.