Explanation: Step 1: First we need to take the input from the user. Step 2: Next we need to take the for loop and iterate till i<=10 so that it can calculate up to 10. Step 3: we need to start iterating from i=1 and keep on iterating until input numb...
5 followers
IIIT - N Software Engineer