OneCompiler

create a function which will take one Natural number it will print fibonacci series till that number. sample input: 8 sample output: 0 1 1 2 3 5 8 sample input: 15 sample output: 0 1 1 2 3 5 8 13

171

Example heading with h2 size

Example heading with h3 size

Following is sample java code.

int i = 10;
if(i>0){
    System.out.println('positive');
}