Sugarmello
IS-IT--Management
//I need to draw the parabola U of the equation y=x^2//
//So I have the following which is not complete. What is missing to be correct?//
#include<iostream>
#include<cmath>
using namespace std;
int main() {
dpuble y;
double x;
int max;
int min;
void printStars( int x);
int x = 0; while(x < 10) {
double y = sqrt((double)x); x++; return 0; }
for(int i=0; i<20; i++)
{
for(int j=0; j<20; j++)
{
cout << y[j];
}
cout << endl;
}
//Is the following needed?//
//if(y>ymax)
{
ymax=y;
}
else if(y<ymin)
{
ymin=y;
//}
void printStars( int x)
{
int i;
if (x == 0)
return;
for(i = 0; i <= x; i++)
cout << " * ";
cout << "\n";
//So I have the following which is not complete. What is missing to be correct?//
#include<iostream>
#include<cmath>
using namespace std;
int main() {
dpuble y;
double x;
int max;
int min;
void printStars( int x);
int x = 0; while(x < 10) {
double y = sqrt((double)x); x++; return 0; }
for(int i=0; i<20; i++)
{
for(int j=0; j<20; j++)
{
cout << y[j];
}
cout << endl;
}
//Is the following needed?//
//if(y>ymax)
{
ymax=y;
}
else if(y<ymin)
{
ymin=y;
//}
void printStars( int x)
{
int i;
if (x == 0)
return;
for(i = 0; i <= x; i++)
cout << " * ";
cout << "\n";