Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic c practice problems

A. Taking user input

01. Write a C program to enter two numbers and find their sum

02. Write a C program to enter length and breadth of a rectangle and find its perimeter & area

03. Write a C program to enter radius of a circle and find its diameter, circumference and area

04. Write a C program to enter base and height of a triangle and find its area.

05. Write a C program to enter length in centimeter and convert it into meter and kilometer.

06. Write a C program to enter temperature in Celsius and convert it itto Fahrenheit.

07. Write a C program to enter temperature in Fahrenheit and convet it into Celsius

08. Write a C program to convert days into years, weeks and iays.

09. Write a C program to find power of any number

10. Write a C program to enter any number and eat- ate iis square root.

11. Write a C program to enter two angles of triangle and find the third angle.

12. Write a program to calculate area of an equlai:al triangle.

13. Write a C program to enter marks of five subjects and calculate total, average and percentage.

14. Write a C program to enter P, T, and R and calculate Simple and Compound Interest.

B. Conditional/Ternary operator

  1. Write a C program ot find maximum and minimum among three numbers using conditional/ternary operator.
  2. Write a C program to check whether a number is even or odd
  3. Write a C program to check whether year is leap year or not using conditional/ternary operator.
  4. Write a C program to check whether character is an alphabet or not using conditional/ternary operator.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages