Monday, May 25, 2020
Home C Language

# C Language

### Program to printing fibonacci series for first n terms

#include<stdio.h> #include<conio.h> void main() { int n,i; long f0=0,f1=1,f2; clrscr(); printf("n enter nn"); scanf("%d", &n); printf("n Fibonacci series up to %d terms n", n); for(i=1;...

### Program to finding factorial of a number

#include<stdio.h> #include<conio.h> void main() { int n,i; double f=1; clrscr(); printf("n Enter nn"); scanf("%d", &n); for(i=1;i<=n;++i) f=f*i; ...

### C Programs

Basic Programs Program to display a message Program to add two numbers Program to find the area of rectangle Program to find the average...

### Program to finding sum of 1/2+2/3+3/4+………….n/n+1

#include<stdio.h> #include<conio.h> void main() { int n,i; float s=0; /* s for sum which is a float value as division occurs */ clrscr(); printf("n Enter nn"); ...

### Program to finding sum of 1 to n

#include<stdio.h> #include<conio.h> void main() { int n,i; long s=0; /* n for given number, s for sum */ clrscr(); printf("n Enter n n"); ...

### Program to print multiplication table for any given number

#include<stdio.h> #include<conio.h> void main() { int i,n; /* i for loop counter, n for given number for which, we have print ...

### Program to print all even numbers from m to n using for loop

#include<stdio.h> #include<conio.h> void main() { int i, n, m; /* i for loop counter, m is lower limit, n for upper limit */ clrscr(); printf("n...

### Program to print all odd numbers from m to n using for loop

#include<stdio.h> #include<conio.h> void main() { int i,n,m; /* i for loop counter, m is lower limit, n for upper limit */ clrscr(); printf("n...

### Program to print all numbers from m to n using for loop

#include<stdio.h> #include<conio.h> void main() { int i,n,m; /* i for loop counter, m is lower limit, n for lower limit */ clrscr(); printf("n Enter lower limit...

### Program to print 1 to n numbers using for loop

#include<stdio.h> #include<conio.h> void main() { int i,n; /* i for loop counter, n for the extreme boundary */ clrscr(); printf("n Enter the upper limitn"); scanf("%d",&n); printf("n...

#### Stay connected

19,697Fans
2,179Followers
14,700Subscribers

### Python program to display the fibonacci sequence using recursive

def recursive_fibo(num): if num <= 1: return num else: ...

### Python program to find the product of two numbers using recursive

def mult_product(x,y): if(x<y): return mult_product(y,x) elif(y!=0): ...

### Python program to convert octal to decimal using function

def octal_to_dec(n): # Function which is convert octal to decimal num = n; dec_value = 0; ...