|
Post by The Light Bringer on Dec 16, 2017 14:51:30 GMT
So the main idea of this is just to push random code snippets like system out prints or stuff and others has to explain what it does, it's a way to teach each other a bit more about programming.
So example:
System.out.println("Hello world!") It means it will print out hello world in console, it's a java code.
So I'll begin with something easy: Java
Int b = 3; Int sum=0; For(int i=0;i<b;i++){ sum=sum*i;} System.out.println(sum);
It is that easy that even people that has never programmed will understand if they look at it for some time😉
|
|
|
Post by Wilhelm Ritter von Leeb on Dec 17, 2017 22:27:34 GMT
So the main idea of this is just to push random code snippets like system out prints or stuff and others has to explain what it does, it's a way to teach each other a bit more about programming. So example: System.out.println("Hello world!") It means it will print out hello world in console, it's a java code. So I'll begin with something easy: Java Int b = 3; Int sum=0; For(int i=0;i<b;i++){ sum=sum*i;} System.out.println(sum);
It is that easy that even people that has never programmed will understand if they look at it for some time😉 Ummm... we did something similar in the computer class. I think it says: As long as i<b, repeat the production sum*i. And, of course it shows the result at the end
|
|
|
Post by The Light Bringer on Dec 17, 2017 22:57:24 GMT
So the main idea of this is just to push random code snippets like system out prints or stuff and others has to explain what it does, it's a way to teach each other a bit more about programming. So example: System.out.println("Hello world!") It means it will print out hello world in console, it's a java code. So I'll begin with something easy: Java Int b = 3; Int sum=0; For(int i=0;i<b;i++){ sum=sum*i;} System.out.println(sum);
It is that easy that even people that has never programmed will understand if they look at it for some time😉 Ummm... we did something similar in the computer class. I think it says: As long as i<b, repeat the production sum*i. And, of course it shows the result at the end Yes, and as sum is 0 result will be 0😉
|
|
|
Post by The Light Bringer on Dec 17, 2017 22:58:18 GMT
Any body wants to try next? Any language and skill level is welcome!
|
|
|
Post by The Light Bringer on Dec 18, 2017 14:16:05 GMT
Ok as nobody has written anything, I'll write another one: HTML(actually not an actual programming language)
<HTML> <HEAD> <TITLE> Hello from STRATEGO </TITLE> </HEAD> <BODY> <H1>Hi</H1> <P>Hello world!</P> </BODY> </HTML>
|
|
|
Post by The Light Bringer on Dec 18, 2017 14:16:57 GMT
You can actually open it in a web browser if you want, just save it as html file😉
|
|
|
Post by Wilhelm Ritter von Leeb on Dec 18, 2017 15:42:00 GMT
That's very easy, lol. Do I even have to explain?
|
|
|
Post by The Light Bringer on Dec 18, 2017 22:50:33 GMT
That's very easy, lol. Do I even have to explain? Nah, do a snippet yourself😉
|
|
|
Post by Wilhelm Ritter von Leeb on Dec 18, 2017 22:51:37 GMT
That's very easy, lol. Do I even have to explain? Nah, do a snippet yourself😉 Hmm... I don't know. I don't think I am good enough on such things
|
|
|
Post by The Light Bringer on Dec 18, 2017 22:54:57 GMT
Nah, do a snippet yourself😉 Hmm... I don't know. I don't think I am good enough on such things It's really easy actually, choose a language for example BBCode and write *[*code*]*😉
|
|
|
Post by Wilhelm Ritter von Leeb on Dec 18, 2017 22:59:47 GMT
Hmm... I don't know. I don't think I am good enough on such things It's really easy actually, choose a language for example BBCode and write *[*code*]*😉 I may try, later
|
|
|
Post by Nobunaga Oda on Dec 19, 2017 0:39:34 GMT
Is it supposed to look like this?
<Hello from the other side>
|
|
|
Post by The Light Bringer on Dec 19, 2017 5:28:44 GMT
Is it supposed to look like this?
<Hello from the other side> Umm not exactly, I think that you wanted to use HTML, right?
|
|
|
Post by Max Otto von Stierlitz on Dec 29, 2017 12:52:06 GMT
Here is my snipplet (real code in programming language ArnoldC):
LISTEN TO ME VERY CAREFULLY friend I NEED YOUR CLOTHES YOUR BOOTS AND YOUR MOTORCYCLE quick GIVE THESE PEOPLE AIR TALK TO THE HAND "I'll be back!" HASTA LA VISTA, BABY
|
|
|
Post by The Light Bringer on Dec 30, 2017 1:21:31 GMT
Here is my snipplet (real code in programming language ArnoldC): LISTEN TO ME VERY CAREFULLY friend I NEED YOUR CLOTHES YOUR BOOTS AND YOUR MOTORCYCLE quick GIVE THESE PEOPLE AIR TALK TO THE HAND "I'll be back!" HASTA LA VISTA, BABY Actually it isn't a programming language, it is based on java and it simply replaces lines...
|
|