привет
Jump to turn (11)
- 1привет
- 2#include #include using namespace std; int factorial(int n) { int result = 1; if
- 3округление чисел типа float в c++
- 4Если пользователь ввел float value = 1.12412412, как вывести на экран число valu
- 5Как в С++ округлять до второй цифры после запятой без сторонних библиотетке
- 6#include #include using namespace std; int factorial(int n) { int result = 1; if
- 7#include #include #include using namespace std; int factorial(int n) { int resul
- 8#include #include #include using namespace std; int factorial(int n) { int resul
- 9#include #include #include using namespace std; int factorial(int n) { int resul
- 10#include #include using namespace std; int main() { int i = 0, j = 0, value = 10
- 11#include #include using namespace std; int main() { int i = 0, j = 0, value = 10
- User
привет
- Assistant
Привет! Как я могу помочь вам сегодня?
- User
#include #include
using namespace std;
int factorial(int n) { int result = 1; if (n == 0) { result = 1; } else { for (int j = 2; j <= n; ++j) { result *= j; } } return result; }
float Sx(float x_start, float x_end, int n, float step) { float result_sx = 0.0; float Sx_x_start = x_start; for (int i = 1; i <= n; ++i) { result_sx += (pow(-4, i)pow(x_start, 2i))/factorial(2*i); Sx_x_start += step; } return result_sx; }
void Yx(float x_start, float x_end, float step) {
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.