C programming Program to print the Fibonacci series up to n numbers.
Program to print the Fibonacci series up to n numbers. Write its pseudo code.Use a for loop.kindly provide a programme using c. Algorithm: step1:start step2:declare a,b,c,n,i step3:initialise a=0,b=1 step4:display enter the limit step5:read n step6:display a,b step7:swap the values,a=b,b=c step8:calculate c=a+b step9:displayc step10:update I to I+1 step11:checkwhether(I<=n) if true go to step7 else go to step12 step12:stop
- 3775 दृश्य
- 1 उत्तर
1 उत्तर
-
-
- 19 जुलाई
- 0 टिप्पणी
-
- Лучшие игры 3d на Андроид
- Программы и игры для Андроид телефона
- Write a program to read the marks of 50 students in a class and display the following:
- What site is the best video tutorial website for learning C programming?
- What does it mean to be C ? Why its called C programming?
- What is the eligibility criteria for cracking the C Progamming Exam 2018?
- Explain the difference between while loop and do-while loop.
- Who invented C C++ and Java? Explain your answer
- Trade crypto anytime
- What are preprocessor directives in c language?
मॉक परीक्षण अभ्यास के लिए
c programming
div#include<stdio.h>/divdiv#include<conio.h>/divdivvoid main()/divdiv{/divdivint a=0,b=1,c,n,i;/divdivclrscr();/divdivprintf("enter the limit\n");/divdivscanf("%d",&n);/divdivfor(i=2;i<n;i++)/divdiv{/divdivc=a+b;/divdiva=b;/divdivb=c;/divdivprintf("%d\t",c);/divdiv}/divdivgetch();/divdiv}/div