Practical On C Programming (11)
Solve the following problems using C Programming.
2. Write a Program to find maximum between two numbers.
3. Write a Program to find maximum between three numbers.
4. Write a Program to check whether a number is negative, positive or zero.
5. Write a Program to check whether a number is divisible by 5 and 11 or not.
6. Write a Program to check whether a number is even or odd.
7. Write a Program to check whether a year is leap year or not.
8. Write a Program to check whether a character is alphabet or not.
9. Write a Program to input any alphabet and check whether it is vowel or consonant.
11.Write a Program to check whether a character is uppercase or lowercase alphabet.
12. Write a Program to input week number and print week day.
13. Write a Program to input month number and print number of days in that month.
14. Write a Program to count total number of notes in given amount.
15. Write a Program to input angles of a triangle and check whether triangle is valid or not.
16. Write a Program to input all sides of a triangle and check whether triangle is valid or not.
17. Write a Program to check whether the triangle is equilateral, isosceles or scalene triangle.
18. Write a Program to find all roots of a quadratic equation.
19. Write a Program to calculate profit or loss.
23. Write a Program to print all natural numbers from 1 to n. - using while loop
24. Write a Program to print all natural numbers in reverse (from n to 1). - using while loop
25. Write a Program to print all alphabets from a to z. - using while loop
26. Write a Program to print all even numbers between 1 to 100. - using while loop
27. Write a Program to print all odd number between 1 to 100.
28. Write a Program to find sum of all natural numbers between 1 to n.
29. Write a Program to find sum of all even numbers between 1 to n.
30. Write a Program to find sum of all odd numbers between 1 to n.
31. Write a Program to print multiplication table of any number.
32. Write a Program to count number of digits in a number.
33. Write a Program to find first and last digit of a number.
34.Write a Program to find sum of first and last digit of a number.
35. Write a Program to swap first and last digits of a number.
36. Write a Program to calculate sum of digits of a number.
37. Write a Program to calculate product of digits of a number.
38. Write a Program to enter a number and print its reverse.
39. Write a Program to check whether a number is palindrome or not.
40. Write a Program to find frequency of each digit in a given integer.
41. Write a Program to enter a number and print it in words.
42. Write a Program to print all ASCII character with their values.
43. Write a Program to find power of a number using for loop.
44. Write a Program to find all factors of a number.
45. Write a Program to calculate factorial of a number.
46. Write a Program to find HCF (GCD) of two numbers.
47. Write a Program to find LCM of two numbers.
48. Write a Program to check whether a number is Prime number or not.
49. Write a Program to print all Prime numbers between 1 to n.
50. Write a Program to find sum of all prime numbers between 1 to n.
51. Write a Program to find all prime factors of a number.
52. Write a Program to check whether a number is Armstrong number or not.
53. Write a Program to print all Armstrong numbers between 1 to n.
54. Write a Program to check whether a number is Perfect number or not.
55. Write a Program to print all Perfect numbers between 1 to n.
56. Write a Program to check whether a number is Strong number or not.
57. Write a Program to print all Strong numbers between 1 to n.
58. Write a Program to print Fibonacci series up to n terms.
59. Write a Program to find one's complement of a binary number.
60. Write a Program to find two's complement of a binary number.
61. Write a Program to convert Binary to Octal number system.
62. Write a Program to convert Binary to Decimal number system.
63. Write a Program to convert Binary to Hexadecimal number system.
64. Write a Program to convert Octal to Binary number system.
65. Write a Program to convert Octal to Decimal number system.
66. Write a Program to convert Octal to Hexadecimal number system.
67. Write a Program to convert Decimal to Binary number system.
68. Write a Program to convert Decimal to Octal number system.
69. Write a Program to convert Decimal to Hexadecimal number system.
70. Write a Program to convert Hexadecimal to Binary number system.
71. Write a Program to convert Hexadecimal to Octal number system.
72. Write a Program to convert Hexadecimal to Decimal number system.
Comments
Post a Comment