Question: 1. write a program that takes a natural number x from a user where 1 between1 and100. The progam should be term inated when the

1. write a program that takes a natural number x from a user where 1 between1 and100. The progam should be term inated when the user enters x 100, and prints the multiples of x Sample*' Enter a number: 10 Multiple numbers 10 20 30 40 50 60 70 80 90 100 Enter a number: 45 Multiple numbers 45 90 Enter a number: -1 Press any key to continue .. 2. A square root of a rmuamber x is a nun bery such that y*-x (x2 0). Every non-negative real number x hasa unique non-negative square root, called the principal square root, which is denoted by Vx. Write a progam that takes an arbitrary non-negative integer number(x 2 0) from a user and prints the integer part of the principal square root of that number.If the user enters'-1', the progam should be term inated. (Note: You should notuse the sato function which is im plem ented in a C library Sample' Enter a number: 4 The integer part of sqrt(4) is 2. Enter a number: 26 The integer part of sqrt(26) is 5. Enter a number -1 Press any key to continue
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
