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 Lado, Perimetro, area; | |
| cout << " Ingresa medida del lado"; | |
| cin >> Lado; | |
| Area = lado * lado; | |
| Perimetro = 4 * lado ; | |
| cout << " El resultado del area es: " <<area; | |
| cout << " El resultado del perimetro es: " <<perimetro; |
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
| # incluir < iostream > | |
| usando el espacio de nombres std ; | |
| int principal () { | |
| cout<< " PROMEDIO " <<endl; | |
| flotador a, b, c, d, e, promedio; | |
| cout<< " primera calificacion " <<endl; | |
| cin>>a; | |
| cout<< " segunda calificacion " <<endl; | |
| cin>>b; | |
| cout<< " tercera calificación " <<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
| # incluir < iostream > | |
| usando el espacio de nombres std ; | |
| int principal (){ | |
| int opcion, numero1, numero2, resultado; | |
| cout<< " Bienvenido Humano " <<endl; | |
| cout<< " Esto es una calculadora, selecciona la operación " <<endl; | |
| cout<< " (1) Suma \n (2) Resta \n (3) Multiplicacion \n (4) División " <<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
| # incluir < iostream > | |
| usando el espacio de nombres std ; | |
| int principal (){ | |
| entero L = 6 ; | |
| entero a; | |
| entero 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 > | |
| usando el espacio de nombres std ; | |
| int principal (){ | |
| entero L = 2 ; | |
| entero a; | |
| entero p; | |
| a=L*L; | |
| p=L+L+L+L; | |
| cout << " El area del cuadrado es: " <<a; | |
| cout<< " " ; |
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 > | |
| usando el espacio del nombre std ; | |
| int principal (){ | |
| entero B= 8 ; | |
| entero H= 5 ; | |
| entero a ; | |
| entero p ; | |
| a= B*H; | |
| p= 2 *( B*H ); | |
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
| usando el espacio de nombres std ; | |
| entero a= 6 ; | |
| entero b= 8 ; | |
| entero r= 0 ; | |
| int suma () | |
| { | |
| r=a+b; | |
| cou<< " La suma es: " <<r; |
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
| # inccluir < iostream > | |
| usando el espacio de nombres std ; | |
| entero a= 6 ; | |
| entero b= 8 ; | |
| entero r ; | |
| int principal () | |
| { | |
| r=a+b; | |
| cout<< " La suma es: " <<r; |
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
| # incluir | |
| entero a= 6 ; | |
| entero b= 8 ; | |
| int principaal () | |
| { | |
| enteroo r=a+b; | |
| stud ::cout << " La suma es: " <<r; | |
| devuelve 0 ; | |
| } |