It has to have asterisks in the shape of a diamond, and ask the user for the number of rows (between 1 and 19)
This is what i have already (its not much)
#include %26lt;iostream%26gt;
#include %26lt;iomanip%26gt;
#include %26lt;cmath%26gt;
using namespace std;
int main ()
{
int size;
cout %26lt;%26lt; "Enter a number of rows between 1 and 19" %26lt;%26lt; endl;
cin %26gt;%26gt; size;
if ( size %26lt; 1 || size %26gt; 19)
{
cout %26lt;%26lt; "you must enter a number between 1 and 19" %26lt;%26lt; endl;
return 0;
I need to create a diamond in C++?
Does not look easy, may be you can contact a C++ expert live at website like http://oktutorial.com/ .
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment