Computer Science, asked by rishabhraushan200524, 1 year ago

write a program to print fibonacci series upto 10 terms in java

Answers

Answered by shreya289004
13

class fibonacci

{

  public static void man()

      {

           int a=0,b=1,c=0,t;

           System.out.print(a+","+b);

           for(t=3;t<=10;t++)

            {

               c=a+b;

               System.out.print(","+c);

                a=b;

                b=c;

         }

     }

}

  HOPE IT HELPS........

  plz mark brainliest

Answered by SnehaKesharwani
0

Answer:

hope it will help you

thank you

Attachments:
Similar questions