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 #44.2K
i am having a problem in my function, i need someone to explain or fix my problem. and r my arrays correct. [code] #include<iostream> #include<iomanip> using namespace std; void display_draw(int mega[12][6], int draw_index); int main() { //int i; const int NUMROWS=12; const int NUMCOLS=6; int draw_index; int val[NUMROWS][NUMCOLS]={ 5,14,16,39,51,34, 1,20,22,29,41,35, … |
|
#include<iostream> using namespace std; int main() { int i,N=5,j; for (i=1; i<=N; i++) { for (j=1; j<= N-i; j++) { cout << " "; } for (j=1; j<=2*i-1; j++) { cout << j ; } cout << endl; } return 0; } the display i want is 1 121 12321 … |