Pproject Euler
ithaibo
这个作者很懒,什么都没留下…
展开
-
Even Fibonacci numbers
Problem 2 Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be: 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ... By cons原创 2013-09-09 23:34:29 · 558 阅读 · 0 评论 -
Multiples of 3 and 5
#include int main(void){ int n1, n2,n3; n1=333*(3+999)/2; n2=199*(5+995)/2; n3=66*(15+990)/2; printf("%d\n",n1+n2-n3); n1=getchar(); return 0; } Multiples of 3 and 5 Problem 1 If we lis原创 2013-09-08 22:16:05 · 504 阅读 · 0 评论