Write a C program to print the fibonacci series.
#include<stdio.h> #include<conio.h> main() { int n,f1,f2,f3; printf("\n enter how many number"); scanf("%d",&n); f1=0; f2=1; printf("\n the fibonacci series = %d\t%d",f1,f2); do { f3=f1+f2; printf("\t%d",f3); f1=f2; f2=f3; n--; }while(n>2); getch(); }
OutPut:
Write a C-Program That Uses Functions To Insert A Sub-String In To A Given Main String From A Given Position.
Write short notes on:
Write a C program to addition of two matrices.
Write a C program to check a year is leap year or not.
What is Risk? Why Risk Analysis is done?