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() { | |
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 (){ | |
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 (){ | |
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 B = 8; | |
int H = 5; | |
int a; | |
int 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
#include <iostream> | |
using namespace std; | |
int main(){ | |
int L = 2; | |
int a; | |
int 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
using namespace std; | |
int a= 6; | |
int b= 8; | |
int r= 0; | |
int suma() | |
{ | |
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
#include <iostream> | |
using namespace std; | |
int a= 6; | |
int b= 8; | |
int r; | |
int main() | |
{ | |
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
#include <iostream> | |
int a= 6; | |
int b= 8; | |
int r= 0; | |
int main() | |
{ | |
r=a+b; | |
std::cout<<"La suma es: "<<r; | |
return 0; |
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> | |
int a= 6; | |
int b= 8; | |
int main() | |
{ | |
int r=a+b; | |
std::cout<<"La suma es: "<<r; | |
return 0; | |
} |
NewerOlder