Computer Science, asked by perfect9975, 1 day ago

Program the following.
• Prompt user to input distance in Kilometers and display it in meters.
• Input any number from user and generate its square e.g. square of 8 is 64
• Input any number from user and generate its cube e.g. cube of 8 is 512
• Input a 4 digit number in any integer type variable and sum all the four digits, e.g. int a =3487, result = 22
• Generate the table for a number input by the user.
• For the following equation 3x4 + 4x3 + x2 + 7x + 9, substitute the user provided value of x and generate the result.

Answers

Answered by rakhisingh15011988
0

Answer:

Prompt user to input distance in Kilometers and display it in meters. • Input any number from user and generate its square e.g. square of 8 is 64 • Input any number from user and generate its cube e.g. cube of 8 is 512 • Input a 4 digit number in any integer type variable and sum all the four digits, e.g. in a =3487, result = 22 • Generate the table for a number input by the user. • For the following equation 3x4 + 4x3 + x2 + 7x + 9, substitute the user provided value of x and generate the result

Similar questions