<<Previous Question <<1500 Plus Interview Questions>> Next Question>>
Write a Java program to find the sum of first 100 numbers using for loop?
Watch the answer for this Selenium Interview Question in a detailed manner in the below youtube video:
Note: Don’t forget to subscribe to my Youtube channel here: Click here
Notes used for explanation in this Youtube video are provided after the video:
Notes used in the above Youtube Video:
int sum=0; for(int i=1;i<=100;i++){ sum = sum + i; } System.out.println("The sum of first 100 numbers is: "+sum);
Next Steps:
- > For more Selenium Interview Questions and answers, continue to the next post (Click on Next Post link below)
- > Check complete Selenium Interview Questions list here (Click here)
Please leave your questions/comments/feedback below.
Happy Learning ?
<<Previous Question <<1500 Plus Interview Questions>> Next Question>>
On a mission to contribute to the Software Testing Community in all possible ways.