none
How to get a Fibonacci Series of even digits, the limit could be up to 4 million RRS feed

  • Question

  • #include "pch.h"
    #include <iostream>
    int main()
    {	
    int ans = 0, i = 0;    
    
     	for(i=0;i<=400000;i++)	
    {
    		if(i%2==0)		
            {
    
    ans=ans+i;
            }
    }	
    printf("%d", ans);
    }


    The above code 

    I the outcome of the sbove code is invalid acc to  projecteular.net

    specifically-

    https://projecteuler.net/problem=2
    https://projecteuler.net/problem=2
    Thursday, June 6, 2019 5:30 PM

Answers

  • Sherry,

    Sorry but you have posted to a forum that deals exclusively with questions/issues about customizing and programming Microsoft Project, a project management application. I suggest you re-post to the following forum:

    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?category=visualstudio

    John

    Thursday, June 6, 2019 5:56 PM