• The School
    • Introduction
    • Admissions
    • Academic Calendar 2025
  • Students
    • 1st Term Routine 2025
    • Phase 1 & Mid Term Classes 8, 9 and 10 2024
    • Midterm Routine Class 12 2024
  • Photo Gallery
  • School Events
  • Hostel
  • Higher Secondary (Arts and Science)
  • Little Star Faculty
  • Resources
    • Digital Book Launch by Honourable Chairman LSHSS to Celebrate International Women’s Day
    • Computer Science Class 11
    • Class 1
    • Class 2
    • Class 3
    • Class 4
    • Class 5
    • Class 6
    • Class 7
    • Class 8
    • Class 9
    • Class 10
    • Class 11
    • Class 12

Little Star Hr. Sec. School

Love Truth Service

Print Fibonacci Series using recursion

#include <iostream>
using namespace std;
void print_fibo(int n, int a=0,int b=1)
{
	if(n>0)
	{
		cout<<a<<"\t";
		int sum = a+b;
		a=b;
		b=sum;
		print_fibo(n-1,a,b);
	}
}
main()
{
	print_fibo(10);
}

Recent Posts

  • Students Shine at Annual Summer Hobby Camp
  • “Maths More Than Just Numbers” Assembly Presentation on 19th May 2025
  • Assembly Presentation on Lessons from Literary Heroes. Dated:-30th April,2025 
  • Assembly Presentation 17th April, 2025
  • Morning Assembly Presentation 10th April

Social Media

  • Instagram : Little Star Hr Sec School
  • Instagram : Star Kids
  • Instagram : Computer Science Dept, Little Star Hr Sec School

Little Star Higher Secondary School

Love Truth Service

Midland, Dimapur
Nagaland

Copyright © 2025 · Education Pro Theme On Genesis Framework · WordPress · Log in