Skip to content

CodeAndCourse

CodeAndCourse
  • Tutorial
  • Programming
    • C
    • C++

if statement

WAP to print the Fibonacci series up to nth term

March 31, 2022April 30, 2021

Write a program to print the Fibonacci series up to nth term using recursive function Output Enter term: 50 1 1 2 3

WAP to calculate the Factorial of a given number

March 31, 2022April 30, 2021

Write a program to calculate the Factorial of a given number using recursive function Output Enter any number: 4Factorial of 4 = 24

WAP to Sum of numbers up to n term

March 31, 2022April 30, 2021

Write a program to Sum of numbers up to nth term Output Enter any number: 5Sum = 15

WAP to print the total of 1*1 – 2*2 + 3*3 – … + (-1)^(n+1)n*n

March 31, 2022April 30, 2021

Write a program to print the total of 1*1 – 2*2 + 3*3 – … + (-1)^(n+1)n*n using recursive function Output 15 Behind the scene 12 – 22 + 32 – 42 + 52 = 15

WAP to print the sum of 1 + 11 + 111 +…+ nth using recursive function

March 31, 2022April 30, 2021

Write a program to print the sum of 1 + 11 + 111 +…+ nth using recursive function Output 12345

Post navigation
Older posts
Newer posts
← Previous Page1 Page2 Page3 … Page5 Next →

Ads

Ads

  • Privacy Policy
© 2022 Code And Course