Turning this into C++
start
Declarations
int nums[3]
for (int =0; i<3, i++)
output "Enter number"
input value
output "Enter number"
input value
output "Enter number"
input value
end
Solution
Code
#include <iostream>
using namespace std;
int main()
{
int nums[3];
for(int i=0;i<3;i++)
{
cout<<"Enter Number: ";
cin>>nums[i];
}
return 0;
}
Screenshot
Output
--
as per the pseudocode it is only asking input
if you want to display the output you can use for loop and cout<<nums[i]; to display
all the best
Get Answers For Free
Most questions answered within 1 hours.