CPE102 – Homework Questions Part 1 (Solution)

$ 24.99
Category:

Description

1. Write C code to add two numbers entered by user.
2. Calculate the area of a circle with given radius.
3. Determine and Output Whether Number N is Even or Odd.
4. Determine Whether a Temperature is Below or Above the Freezing Point.
5. Convert Temperature from Fahrenheit (℉) to Celsius (℃).
6. Write C code to convert the length in feet to centimeter.
7. Write C code to print the square of all numbers from 1 to10.
8. Write C code to print the SUM of numbers from LOW to HIGH. Test with LOW=3 and HIGH=9.
9. Write C code to print all numbers between LOW and HIGH that are divisible by
NUMBER.
10. Write C code to find the largest of three numbers A, B, and C.
11. Write C code for a program that reads 10 numbers from the user and prints out their sum, and their product.
12. Write C code to count and print all numbers from LOW to HIGH by steps of STEP. Test with LOW=0 and HIGH=100 and STEP=5.
13. Write C code to print the multiplication table for 6’s.
14. Write C code for computing factorial N (N!).
15. Write C code to print all natural numbers in reverse (from n to 1).
16. Write C code which generates even numbers between 1000 and 2000 and then prints them in the standard output. It should also print total sum.
17. Write C code with a natural number, n, as its input which calculates the following formula and writes the result in the standard output: S = ½ + ¼ + … +1/n.
18. Write C code to convert a decimal number, n, to binary format?
19. Write C code to print multiplication table of any number.
20. Write C code to count number of digits in a number.
21. Write C code to find first and last digit of a number.
22. Write C code to swap first and last digits of a number.
23. Write C code to check whether a number is palindrome or not.
24. Write C code to find frequency of each digit in a given integer.
25. Write C code to find HCF (Highest Common Factor) of two numbers.

Reviews

There are no reviews yet.

Be the first to review “CPE102 – Homework Questions Part 1 (Solution)”

Your email address will not be published. Required fields are marked *