Answer to Question #27704 in C++ for red rose
2013-04-03T07:05:01-04:00
write a program to input 9 values in an array named volts. After the data has been entered , have your program display the values.
1
2013-04-04T05:20:58-0400
#include<iostream> using namespace std; int main() { const int arraySize = 9; int volts[arraySize]; for(int i=0;i<arraySize;i++) { cout<<"Input "<<i+1<<" value: "; cin>>volts[i]; } cout<<"volts array contents : "; for(int i=0;i<arraySize;i++) { cout<<"["<<volts[i]<<"] "; } //suspend the console cin.get(); cin.get(); return 0; }
Need a fast expert's response?
Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS !
Learn more about our help with Assignments:
C++
Comments
Leave a comment