top of page
Buscar

lab 1

  • Foto del escritor: paucataquiriD
    paucataquiriD
  • 12 jun 2018
  • 1 Min. de lectura

case 1:

{

int n,s1,s2,s3,s4,min,max;

s1=0;

s2=0;

s3=0;

s4=0;

for(n=min;n<=max;n=n+1)

{

s1=s1+n;

s2=s2+(2*n);

s3=s3+(2*n-1);

s4=s4*n;

cout<<s1<<endl;

cout<<s2<<endl;

cout<<s3<<endl;

cout<<s4<<endl;

}//fin de la estructura for

};break;//fin del caso

case 2:

{

int i,j,min,max;

for(i=min;i<=max;i=i+1)

for(j=min;j<=max;j=j+1)

{

cout<<i<<"*"<<j<<"="i*j;

}//fin de la estructura for

};break;//fin del caso

case 3:

{

double p1,p2,v1,v2,t1,t2;

cin>>"ingrese p2">>p2;

cin>>"ingrese t1">>t1;

cin>>"ingrese t2">>t2;

for(v1=10;v1<=20;v1=v1+2)

for(v2=s;v2<=25;v2=v2+5)

{

p1=(p2*v2*t1)/(v1*t2);

cout<<"p1"endl;

}//fin de la estructura for

};break;//fin del caso

case 4:

{

double f,x,r,pi=3.14;

cin>>"ingrese x">>x;

for(x=50;x<=80;x=x+4)

{

r=(2*pi*x)/360;

f=cosh(r)-sin(r);

cout<<"f"<<endl;

}//fin de la estructura for

};break;//fin del caso

 
 
 

Entradas recientes

Ver todo
lab 3

#include<iostream> #include <math.h> using namespace std; int opcion; double a,b,fx,rz,i1,i2,v1,v2,p,r,xl,xc,fi,pi=3.14,R,N,x,Q; double...

 
 
 

Comentarios


bottom of page