0% found this document useful (0 votes)
12 views5 pages

Problem in C Language

Uploaded by

kirantm.1609
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download as docx, pdf, or txt
0% found this document useful (0 votes)
12 views5 pages

Problem in C Language

Uploaded by

kirantm.1609
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1/ 5

superhit

1. Write a program to get and print whole number and fractional number and character(simple
variable)
2. Write a program to print ASCII value of a character
3. Write a program to declare memory for an integer, float and char variable at run time
4. Write a program to check a given character is a digit or not without using library function
5. Write a program to check a given character is alphanumeric or not without using library function
6. Write a program to find quotient and remainder
7. Write a program to find size of variable using sizeof() operator (Size of int, float, double and char)
8. Write a program to find average of given two numbers and round of using floor and ceil functions
9. Write a program to print value in Decimal, Octal, Hexadecimal using format specifiers
10. Write a program to find given number is odd or even (conditional)
11. Write a program to find largest among three numbers
12. Write a program to check given number is divisible by A and B
13. Write a program to convert a given number of days into days, weeks, and years
14. Write a Program to find number of days in a month using C
15. Write a program to read weekday number and print weekday name using switch
16. Write a program to check whether given character is vowel and consonant using switch case
17. Write a program to get an age of person and check he is eligible to vote or not (simple variable and
conditional)
18. Write a program to get name and age of person and print the category he/she belong to(children,
teenagers, adult, senior citizen,
19. Write a program to read two integer numbers and perform basic operations (binary operators) like
+, -, *, / and % using switch case statement in C language (this program is a simple calculator
program with basic operations).
20. Write a program to read two integer numbers and perform basic operations (binary and unary
operatorslike +, -, *, / and % using switch case statement in C language (this program is a simple
calculator program with basic operations).
21. Write a program to get and print a student record(sname,regno,mark1,mark2,mark3,avg,result and
grade)(structures)
22. Write a program to check a given character is an uppercase character or not without using library
function
23. Write a program to check a given character is a whitespace character or not without using library
function
24. Write a program to check a given character is a punctuation mark or not without using library
function
25. Write a program to convert a lowercase character into uppercase and vice versa without using
library function
26. Write a program to check a given year is leap year or not
27. Write a program to demonstrate global local scope
28. Write a program to find sum of 0 to ‘n’ numbers without using loop
29. Write a program to add ‘n’ numbers (array,loop)
30. Write a program to get age of ‘n’ persons and print the count of eligibilities to vote (array,loop and
conditional)
31. Write a program to find sum of 0 to ‘n’ numbers(loop)
32. Write a program to find and display odd and even numbers from the list of ‘n’ numbers
(array,loop conditional)
33. Write a program to compute Fibonacci series for given value
34. Write a Program to Find All Factors of Number (divisors)
35. Write a Program to Find the Sum of Fibonacci Numbers at Even Indexes up to N Terms
36. Write a program to compute factorial of ‘n’ numbers
37. Write a program to check given number is prime or not
38. Write a Program to Display Prime Numbers Between Two Intervals
39. Write a program to find number of digits in the given ‘n’ numbers (array,loop & conditional)
40. Write a program to find sum and product of the digits in the given number
41. Write a program to print occurrence of digit in the given number
42. Write a program to Reverse an Integer number
43. Write a program to divide given list of numbers into two list of numbers with odd number of digit
and even number of digit (array, loop conditional)
44. Write a program to read 'n' numbers and find number of digits, sum of digits and produc of digits
and also find number of digit is even or odd for each numberWrite a program to check given
number is Armstrong or not
45. Write a program to check given number is Armstrong or not
46. Program to Display Armstrong Number Between Two Intervals
47. Write a program to print all prime factors of a given number(prime divisors)
48. Write a program to calculate highest common factor(HCF) or GCD of given numbers
49. Write a program to find LCM of two numbers
50. Write a program to check the given number is palindrome or not
51. Write a program to check the given number is perfect or not
52. Write a program to check the given number is power of 2 or not
53. Write a program to perform arithmetic operations using user defined functions
54. Write a program to check given number is odd or even/prime or not/Armstrong or not/perfect or
not using funtion
55. Write a program to find maximum and minimum element in an array
56. Write a program to search an element in an array
57. Write a program to sort the elements in the array
58. Write a program to remove duplicate element in the sorted array
59. Write a program to merge two arrays
60. Write a program to remove all occurrence of an element in the array
61. Write a program to copy the elements from one array to another array
62. Write a program to generate random numbers within a range
63. Write a program to read the value of n and r and calculate the nCr. nCr known as combination, is
the method of selection of 'r' objects from a set of 'n' objects where the order of selection does not
matter.To find the value of nCr, we use the formula: nCr = n!/[r!( n-r)!]
64. Write a program to read your name(string) and print using gets(), puts()and scanf() and printf()
function
65. Write program to read and print string using dynamic memory allocation
66. Write a program to perform string operation using library functions(strlen,strcat,strncat,strcpy
strncpy,strcmp,strncmp,strrev)
67. Write a program to find occurrence of a character in the string
68. Write a program to count vowels and consonants in a string
69. Write a program to count upper case, lower case and special characters in a string
70. Write a program to convert string in upper case and lower case vice versa
71. Write a program to toggle case of all characters of string
72. Write a program first character of each word will be capital (uppercase) and other characters will
be small (lowercase).
73. Write a program to read a string and eliminate/remove all vowels from input string.
74. Write a program to replace all vowels with star (*) and consonants with hash (#) of string.
75. Write a program to read a string from the user and eliminate/remove first character of each word
of input string
76. Write a program to remove all spaces from a given string
77. Write a program to convert a given string to sentence case
78. Write a program to swap adjacent characters of a string
79. Write a program will read a string and print the length of each word
80. Write a program to read and print a string character by character using pointer(function)
81. Write a program to find length of a string using pointer(function)
82. Write a program to extract a portion of string (substring from the string) based on given from and
to index using pointer(function)
83. Write a program check whether substring present in the given string or not using
pointer( function)
84. Write a program to compare two string using pointers (function)
85. Write a program to concatenate two strings using pointers(function)
86. Write a program to copy two strings using pointers(function)
87. Write a program to reverse a string using pointers(function)
88. Write a program to read n strings from the input and store it in array and print the length of each
string in the array.
89. Write a program to sort array of ‘n’ strings using pointer (function)
90. Write a program to read array elements and print using pointers
91. Write a program to print following pattern.
H
He
Hel
Hell
Hello
92. Write a program to print following pattern.
Hello
Hell
Hel
He
H
93. Write a program to get and print student record(sname,regno,mark1,mark2,mark3,avg,result and
grade)(simple variable)
94. Write a program to read and print ‘n’ students
record(sname,regno,mark1,mark2,mark3,avg,result and grade)(array and structures)
95. Write a program to get ‘n’ students record(sname,regno,mark1,mark2,mark3) and comput
avg,result and grade and print the student records who scored pass marks on all subjects (array and
structures conditional)
96. Write a program to get ‘n’ employees record(ename,eid,designation,basic,da,hra,pf) and compute
grasspay and netpay and sort it using designation(structure and array)
97. Write a program to compute factorial of given number using recursive function
98. Write a program to add ‘n’ numbers using recursive function
99. Write a program to reverse an integer number using recursion
100. Write a program to read an integer number and print sum of all digits using recursion
101. Write a program to calculate length of a string using recursion
102. Write a program to print Fibonacci series of given number using recursion
103. Write a program to convert given decimal number into binary, octal and hexa-decimal numbers
104. Write a program to convert given binary number into decimal , octal and hexa-decimal
numbers
105. Write a program to convert given octal number into decimal ,binary, and hexa-decimal
numbers
106. Write a program to convert given hexa-decimal number into decimal ,binary, and octal numbers
107. Write a program to perform Bitwise operations(Bitwise AND,Bitwise OR,Bitwise XOR, Bitwise
Leftshift and Bitwise rightshift
108. Wrie a program to add binary,octal and hexa-decimal numbers
109. Write a program to compare two files and report mismatches
110. Write a program to perform following operations in matrices
a. Transpose of a given matrix
b. Rotate a given matrix
c. Sum of diagonals of given matrix
d. Interchange elements of first and last in a matrix across rows
e. Interchange elements of first and last in a matrix across columns

You might also like