KEMBAR78
C Language Practicals | PDF | Numbers | Function (Mathematics)
0% found this document useful (0 votes)
10 views1 page

C Language Practicals

The document outlines a series of programming tasks that involve basic input/output operations, mathematical calculations, and control structures in programming. It includes tasks such as temperature conversion, determining even or odd numbers, calculating areas and circumferences, displaying prime numbers, and implementing functions for various operations like GCD and factorial. Each task emphasizes the use of loops, conditionals, and functions to solve common programming problems.

Uploaded by

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

C Language Practicals

The document outlines a series of programming tasks that involve basic input/output operations, mathematical calculations, and control structures in programming. It includes tasks such as temperature conversion, determining even or odd numbers, calculating areas and circumferences, displaying prime numbers, and implementing functions for various operations like GCD and factorial. Each task emphasizes the use of loops, conditionals, and functions to solve common programming problems.

Uploaded by

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

1. input temperature and convert Celsius into Fahrenheit.

2. input a number and finds whether it is even or odd using if else structure
3. Input radius and calculate area of circle if user enters 1 as choice it calculates circumference
if the user enters 2 as choice. it displays error message in case of any other choice.
4. input a character and display whether it is vowel or constant using switch statement.
5. Input two numbers and one arithmetic operator it applies arithmetic operation on two
numbers on the basis of operator entered by user using switch statement
6. Inputs a number from the user and display a table of that number using while loop.
7. write a program that inputs starting and ending point from the user and display all odd
numbers in the given range using do while loop
8. write a program that inputs a number from the user and displayed the factorial of that
number using for loop
9. input a positive integer number from the keyboard and display it in reverse number
10. calculate and display the sum of the following series using for loop
1/2+2/3+3/4+…+99/100
11. write a program that inputs a number from the user and display all prime numbers which are
less than the input number using any loop
12. write a program that inputs two numbers in main function and passes these numbers to a
function. The function displays the maximum number
13. inputs a number and main function and passes the number to a function displays the
factorial of that number.
14. write a program that inputs a number in main function and passes the number to a function
the function displays table of that number
15. input two numbers in main function and passes them to a function the function displays first
number rise to the power of second number
16. prompts the user to enter a number and reverse it. Write a function reverse () to reverse the
number for example…….
17. write a function GCD that has two input parameters and returns the greatest common
divisor of two numbers passed to it, write a program that inputs two numbers and called GCD of
computer greatest common divisor of the number
18. write a program that inputs two integers and then passes them to four functions add
subtract multiply and divide one by one
19. . Write a function is prime that has an input parameter num and returns a value of 1 if it is
prime otherwise it returns the value of 0
20. write a program that prompts user for Cartesian coordinates of two points x1 y1 and x2 y2
and display distance between them.

You might also like