Your were supposed to print something like this but your output does not matches
Enter a number :5
The multiplication table of 5
5*1 = 5
5*2 = 10
5*3 = 15
5*4 = 20
5*5 = 25
5*6 = 30
5*7 = 35
5*8 = 40
5*9 = 45
5*10 = 50
The exponent table of 5
5^1 = 5
5^2 = 25
5^3 = 125
5^4 = 625
5^5 = 3125
The reason is your second for loop is nested inside the first for loop. Please take out your second for loop i.e. remove the indentation from second for loop. This will help you give appropriate results
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.