java basics exercises with solution !! 07-11-2014, 10:20 PM
#1
i'll be sharing here some really simple java exercises with solution to help you practice while learning java (only for beginners)
i'll start today by sharing the first two exercises !!
1.Write a program called Sum10 that calculates the sum of the first ten
positive integers 1 + 2 + … + 10.
2.Write a program named calculation that reads on the keyboard two inserted integers, calculates their sum, their difference and their product and
displays the results.
i'll start today by sharing the first two exercises !!
1.Write a program called Sum10 that calculates the sum of the first ten
positive integers 1 + 2 + … + 10.
Spoiler:
2.Write a program named calculation that reads on the keyboard two inserted integers, calculates their sum, their difference and their product and
displays the results.
Spoiler:
(This post was last modified: 07-16-2014, 01:19 AM by LordPankake.)
![[Image: blackeagle_zps6ad86521.gif]](http://i1363.photobucket.com/albums/r719/AmazeGotStyle/blackeagle_zps6ad86521.gif)