## Fibonacci Series

A series in which next number is the sum of previous two numbers are called fibonacci series.

`For Example:  0, 1, 1, 2, 3, 5, 8, 13, 21, 34... `

Print the fibonacci series upto 8 digit.

``````
public class Fibonacci {
public static void main(String[] args) {

int count = 8, num1 = 0, num2 = 1;
System.out.print("Fibonacci Series of "+count+" numbers:");

for (int i = 1; i <= count; ++i)
{
System.out.print("Print number "+num1);
int sumOfNum1Num2 = num1 + num2;  // Add num1 and num2
num1 = num2;   //store  num2 in num1
num2 = sumOfPrevTwo; // assign the sum of Num1 and Num2,
}
}
}
```	```
`Output:  0, 1, 1, 2, 3, 5, 8, 13, 21, 34... `
{"ft_lang_label":"__label__en","ft_lang_prob":0.52253044,"math_prob":0.9993858,"size":612,"snap":"2022-27-2022-33","text_gpt3_token_len":221,"char_repetition_ratio":0.12664473,"word_repetition_ratio":0.10619469,"special_character_ratio":0.40849674,"punctuation_ratio":0.29139072,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9993573,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-06-28T03:19:03Z\",\"WARC-Record-ID\":\"<urn:uuid:e21c953a-0484-438e-ba3b-5a29549273fb>\",\"Content-Length\":\"20504\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:c5705f59-ad0e-4783-9ae1-9bdfd738e5c1>\",\"WARC-Concurrent-To\":\"<urn:uuid:7d392ad8-b689-4b1f-a26d-d6b0f6075baf>\",\"WARC-IP-Address\":\"166.62.28.95\",\"WARC-Target-URI\":\"http://www.edutechmiles.com/engineering/java-programing/fibonacci-series\",\"WARC-Payload-Digest\":\"sha1:7OESSR5IRS3IC44DOZYUMVETEWSG4POY\",\"WARC-Block-Digest\":\"sha1:PSJHUIO2GRBCCETKPJWC2B2CUFWJYXSE\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-27/CC-MAIN-2022-27_segments_1656103347800.25_warc_CC-MAIN-20220628020322-20220628050322-00770.warc.gz\"}"}