Posts
 
Reputation
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.

~2K People Reached
Favorite Forums
Favorite Tags
c++ x 2
Member Avatar for Abdul_32

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?

Member Avatar for ddanbe
0
63
Member Avatar for Abdul_32

#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 , …

Member Avatar for deceptikon
0
2K