write the c++ code that keeps prompting (10 times) the user to enter an integer. the code print out the product of all the the integers.
#include <iostream>
using namespace std;
int main()
{
int p = 1, n;
cout<<"Enter 10 numbers:"<<endl;
for(int i = 0;i<10;i++){
cin>>n;
p *= n;
}
cout<<"Product of 10 numbers entered: "<<p<<endl;
return 0;
}

write the c++ code that keeps prompting (10 times) the user to enter an integer. the...
Perl Write a program with a subroutine that keeps prompting for a filename until a valid file is entered by the user (print out "file found, thanks") or until five attempts have failed (print out "you did not enter a valid file name"). The sub in this case does not return any value.
Write a program in JAVA that asks the user to enter an integer. Store the integers in an array. Allow for up to 10 integers. When the user enters -1, the program should end. Print the number of integers entered as well as the number of times each integer was entered.
Write a java code prompting the user to input the number of balls they want to buy and also input those ball's radius. Once the input has been prompted, print out their volumes and surface areas.
Write a complete C++ program to ask the user to enter 4
integers. The program must use a function
to find the smallest integer among them and print it on the screen.
Typical output screen should be as following:
Write a complete C++ program to ask the user to enter 4 integers. The program must use a functionto find the smallest integer among them and print it on the screen. Typical output screen should be as following: Note: the code...
Write a program that prompts the user to enter a character, an integer, and floating point number. After reading the input, the program should print out the values entered. Be sure to format the code correctly and include relevant comments. in c
Write a C program to do the following 1) request user to enter 10 integer into an array 2) sort the array in ascending order 3) display the sorted array 4) count the number of odd and even number in the array and print out the result 5) add the value of the odd number and even number and calculate the average of the odd and even number. display the result 6) write function addNumber() to add all the number...
In Python, write a function numLetters() that keeps prompting the user for words until they hit return (using while loops). The function should then return the percent of 3-letter words that were entered. So, if a user entered ten words and 4 of the words had 3 letters, then the percent of 3-letter words is 40
X CODE C + +
Ask the user to enter the integer radius of a circle, and print out Tr2. Make sure the answer is correct to the area of the circle A one place after the decimal point. Remember you only have integer variable to play with. (Can you get the answer correct to 2 digits after the decimal point?) (m) : 1 3.1 m 2 Enter Circle Radius Area of circle :
Write a complete C++ program to ask the user to enter 4 integers. The program must use a function to find the LARGEST integer among them and print it on the screen. Typical output screen should be as following: Note: the code must contain function to find the LARGEST number. Enter four integers 1 2 4 0 Largest integer is 4
Write a complete C++ program to ask the user to enter 4
integers. The program must use a function to find the largest
integer among them and print it on the screen. Typical output
screen should be as following:
Note: the code must contain function to find the largest
number.
Enter four integers 1 2 4 0 Largest integer is 4 03 (35 points)