Employers: discover CodinGame for tech hiring
EVENTS
UPCOMING
PAST
SOLO
PUZZLES
CODE GOLF
OPTIMIZATION
MULTI
LEADERBOARDS
CLASH OF CODE
BOT PROGRAMMING
CODING ESCAPE
COMMUNITY
CONTRIBUTIONS
LEARN
DISCORD
FORUM
LIVE STREAMS
BLOG
Log In
Sign Up
Intro to Programming Examples
jpolitz
22K views
Code Example
First Example
1
2
Run
Second Example
1
2
3
4
5
6
7
8
class SecondExample {
int theNumberFive = 5;
int theNumberEight = 8;
int theNumberTwo = 2;
int x = 58;
int y = 73;
}
Run
Not Quite Math
1
2
3
4
class NotQuiteMath {
int theAnswer1 = (5 + 3) / 2;
}
Run
14
Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.
Go to tech.io
Suggested playgrounds
ABOUT US
CAREERS
PRIVACY
FAQ
The #1 tech hiring platform
SCREENING
INTERVIEWING
ABOUT US
CAREERS
PRIVACY
FAQ
Facebook
YouTube
Twitter
LinkedIn
FR
EN