Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Programación 1
EJEMPLO: ENTRADA.
#include <iostream>
int main()
{
char ch;
cout << "DIGITE UNA LETRA EN MINUSCULA:" <<endl;
cin>> ch;
int i= toupper (ch);
char t=i;
cout << "ESA LETRA EN MAYUSCULA ES:" <<endl;
cout <<t<<endl;
system("pause");
return 0;
}
int main()
{
cout<< "CÓDIGO \t NOMBRE\t SALARIO\n FIN DE LA IMPRESIÓN"<<endl;
return 0;
}
CARLOS ANDRES BERNAL VARGAS
Programación 1
int main()
{
cout<< "IMPRESIÓN DE FORMATO"<<2523456789.6<<endl;
system("pause");
return 0;
}
int main()
{
cout<<"IMPRESIÓN CON
FORMATO";<<setw(18)<<setiosflags(ios::fixed)<<setprecision(3)<<2523456789.6<<endl
;
system ("pause");
return 0;
}
CARLOS ANDRES BERNAL VARGAS
Programación 1
int main()
{
double r1= 6.0, r2= 9.0, a1=20, a2= 50, area= 0.0, a1c, a2c;
a1c =(a1*3.1416)/180;
a2c =(a2*3.1416)/180;
area = 0.2*r1*r2*sin ( a2c-a1c );
cout << "AREA DEL TRIANGULO\n" <<area;
system("pause");
return 0;
}.
int main()
{
double r1= 6.0, r2= 9.0, a1=20, a2= 50, area= 0.0, a1c, a2c;
a1c =(a1*3.1416)/180;
a2c =(a2*3.1416)/180;
area = 0.2*r1*r2*sin ( a2c-a1c );
cout << "AREA DEL TRIANGULO\n" <<area;
CARLOS ANDRES BERNAL VARGAS
Programación 1
system("pause");
return 0;
}
int main()
{
int main()
{
int main()
{
srand(time(NULL));
cout << "ESTOY LANZANDO EL DADO:" <<endl;
cout<<rand()%6+1<<endl;
system("pause");
return 0;
}
int main()
{
char ch;
CARLOS ANDRES BERNAL VARGAS
Programación 1