Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Grupo no.7
Valor 3 pts.
Menu Principal
1. Producir la tabla de valores para x desde 2 a 10 con incrementos de 2 con
la fórmula:
y = 3x4 – 2x2 + x. ej:
No X y = 3x4 – 2x2 +
x
1 2 42
2 4 740
3 6
4 8
5 10
#include <stdlib.h>
#include <conio.h>
#include <math.h>
int main() {
system("cls");
int op;
char resp;
resp = 's';
system("cls");
switch (op) {
case 1: {
float y;
y = 0.0;
y = ecuacion(x);
cout << x << "\t" << y << endl;
}; break;
case 2: {
ganador = loteria(num);
if (num == ganador) {
else {
}
}; break;
case 3: {
float pi = 3.1416;
cin >> r;
cin >> h;
cin >> a;
cout << "\nEl volumen del cono es: " << vol << endl;
ar = area(r, a);
cout << "El area del cono es: " << ar << endl;
}; break;
case 4: {
exit(0);
}; break;
system("pause");
return 0;
float ecuacion(float x) {
float yy;
yy = 3 * pow(x, 4) - 2 * pow(x, 2) + x;
return yy;
return volumen;
return area;
int loteria(int n) {
n = rand() % 10001;
return n;