Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
20% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
1
0 Endorsements
Ranked #107.41K
~217 People Reached
Favorite Forums
Favorite Tags
c++ x 1
Member Avatar for cj232

[CODE=c++]#include <cstdlib> #include <iostream> using namespace std; int main(int argc, char *argv[]) { cout<<"x value x2 value x3value\n\n"; int x=0, y, z; back: x++; if(y=x*x) if(z=x*x*x) cout<<" "<<x<<" "<<y<<" "<<z<<"\n"; if(x<10) goto back; system("PAUSE"); return EXIT_SUCCESS; }[/CODE] how can i get the total of x value, x2 value, x3 value...??? …

Member Avatar for Stefano Mtangoo
0
125
Member Avatar for dylgod

I am trying to write a code that reads an integer and then diplays a diamond with the corresponding number of lines. The program I have written displays a solid diamond, but I am only trying to display the outline. Here is my code: [CODE]import javax.swing.JOptionPane; /** *Odd and even, …

Member Avatar for NormR1
0
92