Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
gcc compiler code for delay
//gcc 5.4.0 #include <stdio.h> double powern(double d,unsigned n) { double x=1.0; unsigned j; for(j=1;j<=n;j++) x*=d; return x; } int main(void) { double sum=0.0; unsigned i; for(i=1;i<=100000000;i++) { sum+=powern(i,i%5); } printf("Sum=%g\n",sum); return 0; }
run
|
edit
|
history
|
help
1
18BCE2182 ASSESS_3 Q4
Lab 9 v0.5
1.6 Set No. of Threads
Greeting
bitwise operations
Assignment 8
pseudo hw
json string formatter
18BCE2182 ASSESS_3 Q3
B_141111_Divisores