Question: C++ 1 2 3 I What is wrong with the following code snippet? nt int price; price = 9.42; O The price variable is never

I What is wrong with the following code snippet? nt int price; price = 9.42; O The price variable is never initialized O The price variable is never declared O The data type for the price variable is not specified O There is a type mismatch between price and 9.42 O The price variable is never assigned a value Write a statement to print out 1, 10, 100, 1000, 10000, with each number in a row. How to calculate a`b, which means a raised to the power of b in C++, note that a and b may contain decimals parts
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
