Red de conocimiento informático - Aprendizaje de programación - Tiempo de programación

Tiempo de programación

#Contiene "stdio.h"

int? principal()

{

int? I, y1, y2, y3;

for(I = y 1 = 1; i lt11; i )y 1 * = I

I = y2 = 1;

p>

while(ilt10)y2 * = I;

I = y3 = 1;

¿Qué hacer? y3 * = yo;? while(i lt10);

printf("10!=d\n10!=d\n10!=d\n ",y1,y2,y3);

¿Regresar? 0;

}

#Contiene "stdio.h"

int? principal()

{

int? Yo;

¿Doble? pi = 0;

for(I = 1;ilt1000000;i =2)

pi =i4==1?1.0/I:-1.0/I;

printf("pi=.6lf\n ",pi * 4);

¿Devolver? 0;

}