0
How to accept numbers frm users using arrays and printing the 4th power of the number and store it in another array and print it
very important question
3 Respuestas
+ 1
//edited
C code snippet below :
int main {
int size, num, i;
int original[1000] ;
long long power4[1000] ;
scanf("%d", & size) ;
for ( i=0;i<size;i++)
{
scanf ("%d", &num) ;
original[i] = num;
power4[i] = (num*num*num*num) ;
printf ("%lld \n", power4[i]) ;
}
printf("Done! Printed and stored in power4 array") ;
return 0;
}
0
thankyou but how to do it using c
0
Check it out now. It is in C now.
Give it a thumbs up, bro. :p