This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include<iostream> | |
| #include<iomanip> | |
| using namespace std; | |
| int main(){ | |
| float peso,estatura,imc; | |
| cout<<"Introduce tu peso en KG:"; | |
| cin>>peso; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| using namespace std; | |
| int main (){ | |
| int L = 6; | |
| int a; | |
| int p; | |
| a= L*L/2; | |
| p= 3*L; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include<iostream> | |
| using namespace std; | |
| int main (){ | |
| int valor1 = 5; | |
| int valor2 = 10; | |
| int resultado = 0; | |
| resultado = valor1 + valor2; | |
| cout<<"El resultado de la suma es: "<<resultado<<std::endl; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include<iostream> | |
| using namespace std; | |
| int main() { | |
| cout<<"PROMEDIO"<<endl; | |
| float a, b, c, d, e, promedio; | |
| cout<<"primera calificacion"<<endl; | |
| cin>>a; | |
| cout<<"segunda calificacion"<<endl; | |
| cin>>b; | |
| cout<<"tercer calificacion"<<endl; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include<iostream> | |
| using namespace std; | |
| int main(){ | |
| cout<<"PROMEDIOS 3 UNIDADES"<<endl; | |
| float a, b, c, d, e, PROMEDIO1, PROMEDIO2, PROMEDIO3, PROMEDIOGENERAL; | |
| cout<<"Primer calificacion unidad 1"<<endl; | |
| cin>>a; | |
| cout<<"Segunda calificacion unidad 1"<<endl; | |
| cin>>b; | |
| cout<<"Tercer calificacion unidad 1"<<endl; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| using namespace std; | |
| int main(){ | |
| int numero; | |
| float cal,suma=0,promedio; | |
| cout<<"Ingresa el numero de materias: "<<endl; | |
| cin>>numero; | |
| for(int a=1;a<=numero;a++){ | |
| cout<<"Ingresa la Calificacion: "<<endl; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| using namespace std; | |
| int main(){ | |
| int opcion, numero1, numero2, resultado; | |
| cout<<"Bienvenido Humano"<<endl; | |
| cout<<"Esto es una calculadora, selecciona la operacion"<<endl; | |
| cout<<"(1) Suma \n (2) Resta \n (3) Multiplicacion \n (4) Division"<<endl; | |
| cin>>opcion; | |
| cout<<"\n Ingresa el primer valor: "<<endl; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| using namespace std; | |
| int main() { | |
| int opcion, numero1, numero2, resultado; | |
| for (int i = 1; i <= 5; i++) { | |
| cout << "Bienvenido Humano" << endl; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| using namespace std; | |
| int main() | |
| { | |
| float promedio; | |
| cout<<"Ingresa la calificación (de 0 a 10): "<<endl; | |
| cin>>promedio; | |
| if(promedio >=6 && promedio<7){ | |
| cout<<"Aprobado"<<endl; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| using namespace std; | |
| int main(){ | |
| int num; | |
| cout<<"Ingresa el numero a analizar: "<<endl; | |
| cin>>num; | |
| if(num==0){ | |
| cout<<"Numero nulo"<<endl; | |
| } | |
| else{ |
NewerOlder