MojoNoot
MojoNoot
CC#
Created by MojoNoot on 1/13/2023 in #help
❔ Trying to make a bit of code to display all values of fibonacci until the nth term input
u have been super helpful
46 replies
CC#
Created by MojoNoot on 1/13/2023 in #help
❔ Trying to make a bit of code to display all values of fibonacci until the nth term input
thank you very mcuh
46 replies
CC#
Created by MojoNoot on 1/13/2023 in #help
❔ Trying to make a bit of code to display all values of fibonacci until the nth term input
yeah thats it
46 replies
CC#
Created by MojoNoot on 1/13/2023 in #help
❔ Trying to make a bit of code to display all values of fibonacci until the nth term input
i think ive seen that before but writen in a different way
46 replies
CC#
Created by MojoNoot on 1/13/2023 in #help
❔ Trying to make a bit of code to display all values of fibonacci until the nth term input
can i ask one question i got this part from a friend but i dont fully understand how it works
Console.WriteLine("{0}", next);
Console.WriteLine("{0}", next);
46 replies
CC#
Created by MojoNoot on 1/13/2023 in #help
❔ Trying to make a bit of code to display all values of fibonacci until the nth term input
u have saved me
46 replies
CC#
Created by MojoNoot on 1/13/2023 in #help
❔ Trying to make a bit of code to display all values of fibonacci until the nth term input
oh okay ill give it ago thank you very much 🙂
46 replies
CC#
Created by MojoNoot on 1/13/2023 in #help
❔ Trying to make a bit of code to display all values of fibonacci until the nth term input
like i know what to write idk where to put it
46 replies
CC#
Created by MojoNoot on 1/13/2023 in #help
❔ Trying to make a bit of code to display all values of fibonacci until the nth term input
it also wont return first and second didgets but i cant figure out where to put that in my code
46 replies
CC#
Created by MojoNoot on 1/13/2023 in #help
❔ Trying to make a bit of code to display all values of fibonacci until the nth term input
oki dokiee
46 replies
CC#
Created by MojoNoot on 1/13/2023 in #help
❔ Trying to make a bit of code to display all values of fibonacci until the nth term input
should i just put fibonacci(n)
46 replies
CC#
Created by MojoNoot on 1/13/2023 in #help
❔ Trying to make a bit of code to display all values of fibonacci until the nth term input

int n = Convert.ToInt32(Console.ReadLine());
Console.WriteLine(Fibonacci(n));
public static void Fibonacci(int x) {
int first = 1;
int second = 2;
int next = 3;

for (int i = 3; i <= x; i++){
next = first + second;
Console.WriteLine("{0}", next);
first = second;
second = next;
}

}

int n = Convert.ToInt32(Console.ReadLine());
Console.WriteLine(Fibonacci(n));
public static void Fibonacci(int x) {
int first = 1;
int second = 2;
int next = 3;

for (int i = 3; i <= x; i++){
next = first + second;
Console.WriteLine("{0}", next);
first = second;
second = next;
}

}
46 replies
CC#
Created by MojoNoot on 1/13/2023 in #help
❔ Trying to make a bit of code to display all values of fibonacci until the nth term input
but i havent used a bool anywhere lmao
46 replies
CC#
Created by MojoNoot on 1/13/2023 in #help
❔ Trying to make a bit of code to display all values of fibonacci until the nth term input
it now gives me the error cannot convert bool to void\
46 replies
CC#
Created by MojoNoot on 1/13/2023 in #help
❔ Trying to make a bit of code to display all values of fibonacci until the nth term input
once i converted it to void
46 replies
CC#
Created by MojoNoot on 1/13/2023 in #help
❔ Trying to make a bit of code to display all values of fibonacci until the nth term input
okay ill check that out thank you very much i might be back later to ask smth else 😆 🙂
46 replies
CC#
Created by MojoNoot on 1/13/2023 in #help
❔ Trying to make a bit of code to display all values of fibonacci until the nth term input
sorry i am knew to coding
46 replies
CC#
Created by MojoNoot on 1/13/2023 in #help
❔ Trying to make a bit of code to display all values of fibonacci until the nth term input
would you mind explaining that for me
46 replies
CC#
Created by MojoNoot on 1/13/2023 in #help
❔ Trying to make a bit of code to display all values of fibonacci until the nth term input
i want to return the series of fibonacci numbers so if i put 3 in i want it to return 1,1,2
46 replies
CC#
Created by MojoNoot on 1/13/2023 in #help
❔ Trying to make a bit of code to display all values of fibonacci until the nth term input
it says not all code paths return a value and im just confused
46 replies