Question: Write C program using loops to answer the following question: How many times you need to multiply 1 by 1 0 in order to reach

Write C program using loops to answer the following question:
How many times you need to multiply 1 by 10 in order to reach or exceed your university ID number? for example: If ID is 2000, the answer should be 4 because you need to multiply 1 by 10 four times to reach 2000:
1*10=10<2000
1*.10*10=100<2000
1*10*10*10=1000<2000
1*.10*10*10*10=10000>=2000=> stop here
What your answer should contain?
1. The C program code
2. The output of your program

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!