

Prepara tus exámenes y mejora tus resultados gracias a la gran cantidad de recursos disponibles en Docsity
Gana puntos ayudando a otros estudiantes o consíguelos activando un Plan Premium
Esta página no es visible en la vista previa
¡No te pierdas las partes importantes!


#include <stdio.h> #include <stdlib.h> #include <math.h> #include <time.h> int main(int argc, char argv[]) { int i=0; float a[2],b[2],c[2],d[2],x[2],y[2],f[2],g[2],e[2]; printf("e=a!^2/3+tan^2(bc)+1/sen^5¨((c-1)!)"); srand(time(NULL)); for(i=0;i<2;i++) { a[i]=(rand()%10)+1; b[i]=(rand()%10)+1; c[i]=(rand()%10)+3; d[i]=b[i]c[i]; x[i]=a[i]; y[i]=x[i]-1; while(y[i]>1) { x[i]=x[i]*y[i]; y[i]--;
f[i]=c[i]-1; g[i]=c[i]-2; while(g[i]>1) { f[i]=f[i]*g[i]; g[i]--; } e[i]=((pow(x[i],.33))+(pow(tan(d[i]),2)))+(1/(pow(sin(f[i]),5))); } printf("\n\n\te\n"); for(i=0;i<2;i++) { printf("\t%.2f\t",e[i]); } return 0; }