Question: Write a CH program that takes two integers (num and x) as input from the user and prints the sum of all powers of num
Write a CH program that takes two integers (num and x) as input from the user and prints the sum of all powers of num from p to x. where the value of should also asked from the user. For example, if a user enters 5 as num and 7 as x then your answer should be 511+5^2+5^3+5 4+5.5+5+6+517 Note: Execute the program using for loop
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
