1
I’m doing an EP activity and he asked me for it in the image, but I got stuck in the sequence part, because, like the sequence is the top numbers is a sequence growing from 1 to infinity, and underneath are potentials of 2, i was wondering how can I make the 2 powers without the Math library, tried a test medium code, I also thought to put the value of the for in some incognita and use it to multiply the equation, but I do not know tbm how to store the value of for but nor scrolls, so to half lost.
#include "stdio.h"
int main(void) {
int t,i=0;
float p,QuadNum;
// seleção inicial
printf("digite um numero ");
scanf("%d",&t);
for( i=0;i<=t;i++){
QuadNum=i;
}
p= (1*2*3*4*5)/(QuadNum*i);
printf(" o valor é %f =",p);
return 0;
}
To raise a number squared just multiply by itself. Ex: 3² = 33, 4² = 44
– Natan Fernandes