Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
DeltaX campus recruitment
//One of the easiest Q among four asked in deltaX coding recruitment #include <bits/stdc++.h> using namespace std; int main() { long long int n,i,f,s,t; n= pow(10,6); f=0;s=1; cout<<f<<"\n"<<s<<"\n"; for(i=3;;i++) { t = s+f; if(t>n) break; if(t%5==0) cout<<"DeltaX"<<"\n"; else cout<<t<<"\n"; f=s; s=t; } }
run
|
edit
|
history
|
help
0
ConvHull
dia
code
riemann
Matrix
work
Parenthesis checker
Memory_test
code
ulib