0% found this document useful (0 votes)
76 views2 pages

Some Questions

The document provides instructions for writing C programs to perform various mathematical calculations and checks using functions and recursion. Some of the tasks include writing programs to find the cube of a number, sum and average of numbers, maximum and minimum between two numbers, whether a number is even, odd, prime, Armstrong or perfect using functions. Similar tasks are listed using recursion, such as finding the factorial, Fibonacci sequence, GCD and LCM of numbers.

Uploaded by

Yagneswar Naidu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
76 views2 pages

Some Questions

The document provides instructions for writing C programs to perform various mathematical calculations and checks using functions and recursion. Some of the tasks include writing programs to find the cube of a number, sum and average of numbers, maximum and minimum between two numbers, whether a number is even, odd, prime, Armstrong or perfect using functions. Similar tasks are listed using recursion, such as finding the factorial, Fibonacci sequence, GCD and LCM of numbers.

Uploaded by

Yagneswar Naidu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

1. Write a C program to find cube of any number using function.

2. Write a C program to perform sum and average of numbers using function.


3. Write a C program to find square of any number using function.
4.
5. Write a C program to find diameter, circumference and area of circle using
functions.
6. Write a C program to find maximum and minimum between two numbers using
functions.
7. Write a C program to check whether a number is even or odd using functions.
8. Write a C program to check whether a number is prime, Armstrong or perfect
number using functions.

9. Write a C program to find all prime numbers between given interval using
functions.
10.Write a C program to print all strong numbers between given interval using
functions.
11.Write a C program to print all Armstrong numbers between given interval using
functions.
12.Write a C program to print all perfect numbers between given interval using
functions.
13.Write a C program to find factorial of a number using functions
14.Write a C program to print Fibonacci sequence using functions
15. Write a C Program to Check Whether a Number can be Expressed as Sum of Two
Prime Numbers
16.Write a C Program to Convert Binary Number to Decimal and vice-versa
17.Write a C program to perform sum of two matrices using functions
18.Write a C program to perform multiplication of two matrices using functions
Programs on recursion

1. Write a C program to find power of any number using recursion.


2. Write a C program to print all natural numbers between 1 to n using recursion.
3. Write a C program to print all even or odd numbers in given range using
recursion.
4. Write a C program to find sum of all natural numbers between 1 to n using
recursion.
5. Write a C program to find sum of all even or odd numbers in given range using
recursion.
6. Write a C program to find reverse of any number using recursion.
7. Write a C program to check whether a number is palindrome or not using
recursion.
8. Write a C program to find sum of digits of a given number using recursion.
9. Write a C program to find factorial of any number using recursion.
10.Write a C program to generate nth Fibonacci term using recursion.
11.Write a C program to find GCD (HCF) of two numbers using recursion.
12.Write a C program to find LCM of two numbers using recursion.
13.Write a c program to find number of combinations C(n,r) given the values of n
and r using recursion.
14.Write a C program to calculate length of the string using recursion.

You might also like