Write an array declaration statement that stores the following values in an array named
volts : 16.24, 18.98, 23.75, 16.29, 19.54, 14.22, 11.13, and 15.39. Include these
statements in a program that displays the values in the array.
1
Expert's answer
2012-11-27T09:53:36-0500
#include "iostream" using namespace std;
int main() { int s=0; float volts[]={16.24, 18.98, 23.75, 16.29, 19.54, 14.22, 11.13, 15.39}; & for(int i=0;i<8;i++) & cout<<"volts["<<i<<"]= "<<volts[i]<<endl;
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment