Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Ejercicios de Condicionales
Ejercicios de Condicionales
#include<iostream>
int main()
int x;
float f;
cin >> x;
if (x == 2)
f = 2 * x*x*x - 8;
else
f = sin(3 * x) - abs(x*x);
system("pause");
return 0;
EJERCICIO 2
#include<iostream>
int main()
{
int e;
cin >> e;
if ((e == 6) || (e == 7))
else
system("pause");
return 0;
EJERCICIO 2
/*ESTE ALGORITMO REGALA BOLETAS DEUNA EMISORA PARA UN CONCIERTO SOLO PARA PERSONAS QUE
TIENEN 28 AÑOS O MAS*/
#include<iostream>
int main()
int x;
cin >> x;
if (x>=28)
{
cout << "entregar boleta" << endl;
else
system("pause");
return 0;