Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #72.8K
2 Posted Topics
i have this two dimensional array float grades size [30] [10]; my question is how to address a number for example 2 in the first row first column? | |
#include <iostream> using namespace std; float read_input() { float x[5],a, b ,c, d ,e ; cout<<"enter 5 numbers:"<<endl; for (int i=0; i<5; i++) { cin>>x[i]; } a=x[0]; b=x[1]; c=x[2]; d=x[3]; e=x[4]; cout<<"a="<<a<<endl; cout<<"b="<<b<<endl; cout<<"c="<<c<<endl; cout<<"d="<<d<<endl; cout<<"e="<<e<<endl; } float calculate_average() { int total=0 ,avg; { total += float read_input( a,b , … |
The End.