Thursday, July 28, 2016

Java -practicing Loops

Hi there ,Happy That you made it here :D
today we learn about Java Loops
Loops is a simple way to repeat a specific instruction more that once ,
for example if you want to add all numbers from one to ten,
you will add them like that : 1 + 2 +...+10 ,
but yet a better way to make a loop
for example for loop :
int t =0;
for (int i = 1; i <11 ;i++)
{
t += i;
}
a good way to read more on tutorials point website
a good practice to have from  Hacker Rank 
and Solution is here 

No comments:

Post a Comment