We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
for second case you must need i=0 because for case 1 i incremented to n-1. or you can change j instead of i in inner for loop.So you you dont need to write i=0
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Java Loops II
You are viewing a single comment's thread. Return to all comments →
for second case you must need i=0 because for case 1 i incremented to n-1. or you can change j instead of i in inner for loop.So you you dont need to write i=0