#include <iostream.h>
#include <conio.h>int main ()
{
int i;
for (i=20; i >=0; i = i - 4)
cout<<i<<" ";
getch();
return 0;
}
5.-

6

7
8
9.- inicio
L=7365 int
a=11.7e-6 aum real
to=0
tf=40
t int
write("temperatura to aumento de longitud")
for (T=to to tf step t=t+4)
{
aum=a*L*(tf-t)
write(T,"",aum)
}
fin

10.-
inicio
t int
prob real
write ("tiempo probabilidad de la llamada")
for(t=1 to 10 step t=t+1) for(t=; T<=10; t++)
{
prob=1-exp(-t/2.0)
write (t,"",prob)
}
fin :)
inicio
t int
prob real
write ("tiempo probabilidad de la llamada")
for(t=1 to 10 step t=t+1) for(t=; T<=10; t++)
{
prob=1-exp(-t/2.0)
write (t,"",prob)
}
fin :)
#include <iostream.h>
#include <conio.h>
#include <math.h>
#include <iomanip.h>
int main()
{
int t;
float prob;
cout<<"Tiempo Probabilidad de la llamada "<<endl;
for (t=1; t<=10; t++)
{
prob=pow(-t/2.0,-1);
cout<<t<<""<<setw(20) <<prob<<endl;
}
getch();
return 0;
}
#include <conio.h>
#include <math.h>
#include <iomanip.h>
int main()
{
int t;
float prob;
cout<<"Tiempo Probabilidad de la llamada "<<endl;
for (t=1; t<=10; t++)
{
prob=pow(-t/2.0,-1);
cout<<t<<""<<setw(20) <<prob<<endl;
}
getch();
return 0;
}
No hay comentarios:
Publicar un comentario