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 to print the following output.
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5
Write a C program to calculate the following sum:
Sum = 1-x^2/2!+x^4/4!-x^6/6!+x^8/8!-x^10/10!
Write an program to generate Pascal’s triangle.
Briefly describe different user interface elements.
Write a C program to find minimum among three numbers.