Graph
Graph
#include <cmath>
#include <cstring>
using namespace std;
double ans(int* x, int* n);
void solution(int* x, int* nth, char arr[][100]);
int main()
{
char array[100][100]{};
cout << "Enter the value of x for f(x)= x^n +x^n-1 ";
int num1;
cin >> num1;
cout << "Enter the value of n for f(x)= x^n +x^n-1 ";
int num2;
cin >> num2;
return 0;
}
double ans(int* x, int* n )
{
return pow(*x, *n) + pow(*x, *n - 1);
}
void solution(int* x, int* nth, char arr[][100])
{
int answer;
int y=ans(x,nth);
for (int i = 0; i < *x; i++)
{
answer = ans(&i, nth);
arr[i][answer]='.';
}
cout << ' ';
for (int i = 0; i <= *x; i++)
{
cout << i << ' ';
}
for (int i = 0; i <= y; i++)
{
cout << i << endl;
}
#include <iostream>
#include <cmath>
#include <cstring>
using namespace std;
int ans(int* x, int* n);
void solution(int* x, int* nth, char **box);
int main()
{
char **array=NULL;
cout << "Enter the value of x for f(x)= x^n +x^n-1 ";
int num1;
cin >> num1;
cout << "Enter the value of n for f(x)= x^n +x^n-1 ";
int num2;
cin >> num2;
delete[]array;
return 0;
}
int ans(int* x, int* n)
{
return pow(*x, *n) + pow(*x, *n - 1);
}
void solution(int* x, int* nth, char** box)
{
int answer;
{
cout << *(*(box + i) + j) <<' ';
}
}
//*cout << ' ';
//for (int i = 0; i <= *x; i++)
//{
// cout << i << ' ';
//}
//for (int i = 0; i <= y; i++)
//{
// cout << i << endl;
//}*/
#include <iostream>
#include <cmath>
#include <cstring>
using namespace std;
int ans(int* x, int* n);
void solution(int* x, int* nth, char **box);
int main()
{
char **array=NULL;
cout << "Enter the value of x for f(x)= x^n +x^n-1 ";
int num1;
cin >> num1;
cout << "Enter the value of n for f(x)= x^n +x^n-1 ";
int num2;
cin >> num2;
solution(&num1, &num2, array);
delete[]array;
return 0;
}
int ans(int* x, int* n)
{
return pow(*x, *n) + pow(*x, *n - 1);
}
void solution(int* x, int* nth, char** box)
{
int xaxis = *x;
int yaxis= ans(x, nth);
box = new char* [yaxis];
int answer;
{
*(*(box + i) + j) = 'f';
}
}*/
{
cout <<' ' << *(*(box + i) + j) ;
}
cout << endl;
}*/
#include <iostream>
#include <cmath>
#include <cstring>
using namespace std;
int ans(int* x, int* n);
void solution(int* x, int* nth, char **box);
int main()
{
char **array=NULL;
cout << "Enter the value of x for f(x)= x^n +x^n-1 ";
int num1;
cin >> num1;
cout << "Enter the value of n for f(x)= x^n +x^n-1 ";
int num2;
cin >> num2;
delete[]array;
return 0;
}
int ans(int* x, int* n)
{
return pow(*x, *n) + pow(*x, *n - 1);
}
void solution(int* x, int* nth, char** box)
{
int xaxis = *x;
int yaxis= ans(x, nth);
box = new char* [yaxis];
int answer;
{
*(*(box + i) + j) = 'f';
}
}*/
{
cout <<' ' << *(*(box + i) + j) ;
}
cout << endl;
}*/
#include <iostream>
#include <cmath>
#include <cstring>
using namespace std;
int ans(int* x, int* n);
void solution(int* x, int* nth, char **box);
int main()
{
char **array=NULL;
cout << "Enter the value of x for f(x)= x^n +x^n-1 ";
int num1;
cin >> num1;
cout << "Enter the value of n for f(x)= x^n +x^n-1 ";
int num2;
cin >> num2;
delete[]array;
return 0;
}
int ans(int* x, int* n)
{
return pow(*x, *n) + pow(*x, *n - 1);
}
void solution(int* x, int* nth, char** box)
{
int xaxis = *x;
int yaxis= ans(x, nth);
box = new char* [yaxis];
int answer;
{
*(*(box + i) + j) = 'f';
}
}*/
{
cout <<' ' << *(*(box + i) + j) ;
}
cout << endl;
}*/