0% found this document useful (0 votes)
16 views

C Programme List

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views

C Programme List

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 15

S.

No Title Of Programs
1 A program that prints a “Sentence”.
2 A program that print the value of integer number “n”.
3 A program that read & display an integer number(1).
4 A program that read & display an integer number(2).
5 A program that read & display floating pointnumber.
6 A program that read & display long number.
7 A program that read & display double number.
8 A program that read & display any character.
9 A program that read ASCII value & display equivalent character.
10 A program that read any character & display ASCII value.
11 A program that read any lower case character & display in upper case.
12 A program that read any upper case character & display in lower case.
13 A program that read any decimal number & display equivalent octal number.
14 A program that read any decimal number & display equivalent hexadecimalnumber.
15 A program that read any octal number & display equivalent decimal number.
16 A program that read anyhexadecimal number & display equivalent decimalnumber.
17 A program that read & display a “Word”.
18 A program that read & display a “Sentence”.
19 A program that read any date in the format DD/MM/YYYY & displays day, month & year separately.
20 A program that read any date in the format DD-MM-YYYY & displays day, month & year separately.
21 A program that read any date in the entire following format
22 i) DD/MM/YYYY
23 ii) DD-MM-YYYY
24 iii) DD MM YYYY
25 iv) DD,MM,YYYY
26 & displays day, month & year separately.
2. Operator Using Programs
27 A program that read two integer & display sum.
28 A program that subtracts two integers.
29 A program that read two integer & display product.
30 A program that divide two integers.
31 A program that divide twofloating point numbers.
32 A program that read two integer & display remainder.
33 A program that read radius of a circle & display area.
34 A program that read temperature in Celsius & display Fahrenheit.
35 A program that read temperature in Fahrenheit & display Celsius.
36 A program that read twonumber & display bitwise AND.
37 A program that read twonumber & display bit-wise OR
38 A program that read two numbers & display bit-wise Exclusive OR.
39 A program that read anumber & divide by two using shift operator.
40 A program that read anumber & multiply by 2 using shift operator.
41 A program that read anumber & multiply by 5 using shift operator.
42 A program that read anumber & multiply by 4 using bitwise AND.
43 A program that read anumber & mod by 8 using bitwise AND.
3. Using Math.h Programs
44 A program that read any integer number & displayabsolute value.
45 A program that read any angle θ and display sin (θ).
46 A program that read any angle θ and display cos(θ).
47 A program that read any angle θ and display tan(θ).
48 A program that read any angle θ and display cot(θ).
49 A program that read any angle θ and display sec(θ).
50 A program that read any angle θ and display cosecθ).
51 A program that read a value n & display sin inverse(n).
52 A program that read a value n & display cos inverse(n).
53 A program that read a value n & display tan inverse(n).
54 A program that read a value n & display cot inverse(n).
55 A program that read a value n & display sec inverse(n).
56 A program that read a value n & display cosec inverse(n).
57 A program that read two numbers(x,y) & display the value of x to the power y.
58 A program that read anynumber & display its square root.
59 A program that read anynumber x & display e to the power x.
60 A program that read anynumber x & display e to the power log(x).
61 A program that read anynumber x & display e to the power log10(x).
4. Using If , If. . . . . . . Else
62 A program that read an integer & display odd or even.
63 A program that read two numbers & display maximum (1).
64 A program that read two numbers & display maximum (2).
65 A program that read two numbers & display minimum (1).
66 A program that read two numbers & display minimum (2).
67 A program that read three numbers & display maximum.
68 A program that read three numbers & display minimum.
69 A program that read three numbers & display medium.
70 A program that read mark & display pass or fail.
71 A program that read mark & display result in division.
72 A program that read mark & display result in grade.
73 A program that read any year & display leap year or not leap year.
74 A program that read three numbers (a,b,c) & determine the roots of the quadratic equation :
75 Ax2+bx+c=0.
5. Using Conditional Operator
76 A program that read an integer & display odd or even.
77 A program that read two numbers & display maximum (1).
78 A program that read two numbers & display maximum (2).
79 A program that read two numbers & display minimum(1).
80 A program that read two numbers & display minimum(2).
81 A Program That Read Three Numbers & Display Maximum.
82 A Program That Read ThreeNumbers & Display Minimum.
83 A Program That Read ThreeNumbers & Display Medium.
84 A Program That Read Mark & Display Pass Or Fail.
6. Switch
85 A Program That Read Digit & Display By Spelling.
86 A Program That Read AnyNumber & Display EquivalentRoman Number.
7.Series
87 1+2+3+4+……….up to n’th term.
88 2+4+6+8+……….up to n’th term.
89 1+3+5+7+……….up to n’th term.
90 4+12+20+28+……….up to n’th term.
91 2+5+8+11+……….up to n’th term.
92 1.2+2.3+3.4+……….up to n’th term.
93 2.1+5.3+8.5+……….up to n’th term.
94 1.3+3.5+5.7+……….up to n’th term.
95 12+22+32……….up to n’th term.
96 1.12+2.32+3.52……….up to n’th term.
97 1.22+2.32+3.42……….up to n’th term.
98 12.22+22.32+32.42……….up to n’th term.
99 1.2.3+2.3.4+3.4.5+……….up to n’th term.
100 1.3.5.7+3.5.7.9+5.7.9.11+……….up to n’th term.
101 2.5.8+5.8.11+8.11.14+……….up to n’th term.
102 5.6.7+6.7.8+7.8.9+……….up to n’th term.
9. Loop
103 A Program That Read A Positive Integer & Display Its Factorial.
104 A Program That Read A Positive Integer & Display Sum Of Its Digit.
105 A Program That Read A Positive Integer & Display Reverse.
106 A Program That Read Any DecimalNumber & Display EquivalentBinary number.
107 A Program That Read Any DecimalNumber & Display Equivalent Octal number.
108 A Program That Read Any DecimalNumber & Display EquivalentHexadecimal number.
109 A Program That Read Twonumbers & Display GCD (GreatestCommon Divisor).
110 A Program That Read Twonumbers & Display LCM (LeastCommon Multiple).
111 A Program That Read Twonumbers (a,b) & Display ab (a to the power b).
112 i) A Program That Read Twonumbers (n,r) & Display nPr (Permutation).
113 ii) A Program That Read Twonumbers (n,r) & Display nPr (Permutation).
114 iii) A Program That Read Twonumbers (n,r) & Display nPr (Permutation).
115 i) A Program That Read Twonumbers (n,r) & Display nCr (Combination).
116 ii) A Program That Read Twonumbers (n,r) & Display nCr (Combination).
117 iii) A Program That Read Twonumbers (n,r) & Display nCr (Combination).
118 iv) A Program That Read Twonumbers (n,r) & Display nCr (Combination).
119 A Program That Read Any Integer & Display Its Digital Root.
120 A Program That Read Any Integer & Test Prime Or Not Prime.
121 Write a program that read any integer & test prime or not prime (2).
122 Write a program that read any integer & test prime or not prime (3).
123 Write a program that read any integer & test prime or not prime (4).
124 Write a program that read any integer & test prime or not prime (5).
125 Write a program that read any integer & test prime or not prime (6).
126 Write a program that print all prime numbers from 1 to n.
127 Write a program that print all prime numbers from m to n (m>n).
128 Write a program that count total prime numbers from 1 to n.
129 Write a program that displays first n prime numbers.
130 Write a program that displays first n Fibonacci numbers.
131 Write a program that print allFibonacci numbers from 1 to n.
132 Write a program that read a number & test Fibonacci or not Fibonacci.
133 10. One Dimensional Array
134 Write a program that read & display an array.
135 Write a program that read & display sum (1).
136 Write a program that read & display sum (2).
137 Write a program that read & display average (1).
138 Write a program that read & display average (2).
139 Write a program that read & display average (3).
140 Write a program that read anarray & display maximum.
141 Write a program that read anarray & display minimum.
142 Write a program that inserts any number in an array.
143 Write a program that deletes any number from an array.
144 Write a program that searches any number from an array.
145 Write a program that read & sort an array using bubble sort inascending order.
146 Write a program that read & sort an array using bubble sort in descending order.
147 Write a program that read anarray & display medium.
148 Write a program that displays first n prime numbers.
149 Write a program that displays first n Fibonacci numbers.
150 Write a program that reads any decimal number & equivalentbinary number.
151 11. Multi Dimensional Array
152 Write a program that read & display matrices.
153 Write a program that adds two matrices.
154 Write a program that multiplies two matrices.
155 Write a program that add & multiply two matrices.
156 Write a program that display Pascal pyramid.
1
2 1
3 3 1
4 6 4 1
5 10 10 5 1
12. String.h
156 Write a program that read a line of text & display its length.
157 Write a program that read a line of text & display it’s in reverse order.
158 Write a program that read two line of text & copy second line into first line.
159 Write a program that read two line of text & add second line with first line.
160 Write a program that compares two strings.
161 Write a program that compares two strings without case sensitivity.
162 Write a program that read a line of text & display in lower case.
163 Write a program that read a line of text & display in upper case.
164 13. String
165 (Processing)
166 Write a program that convert a line to upper case.
167 Write a program that convert a line to lower case.
168 Write a program that read a word & display every character with one space.
169 Write a program that read a word & display every character with one space in reverse order.
170 Write a program that read a line of text & display every character in separate line.
171 Write a program that read a line of text & display every character with ASCII value in separate line.
Write a program that read a line of text & display number of upper case, lower case, digit, space & other
172
character.
173 Write a program that read a line of text & display number of vowel, consonant, digit, space & other character.
174 Write a program that read a line of text & display the frequency of every letter.
175 Write a program that read a line of text & display the frequency of every character.
176 Write a program that read & display an array of string.
177 Write a program that read anarray of string & display in alphabetic order (with case sensitive).
178 Write a program that read anarray of string & display in alphabetic order (without case sensitive).
179 Write a program that read anybinary number & display equivalent decimal number.
180 Write a program that read any octal number & display equivalent decimal number.
181 Write a program that read anyhexadecimal number & display equivalent decimal number.
182 14. File Write
183 Write a program that writes 1 to 10 in a file.
184 Write a program that write the following pyramid in a file.
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5
185 Write a program that read anarray & write in a file.
186 Write a program that read anarray & write in a file withascending order.
15. File Read
187 Write a program that read n numbers from a file & display in output screen.
188 Write a program that read anarray until EOF (End Of File) (1).
189 Write a program that read anarray until EOF (End Of File) (2).
190 Write a program that read every character from a file & display in output screen.
191 Write a program that read display content of this file in output screen.
192 Write a program that read every character from a file & display in upper case.
193 Write a program that read every character from a file & display in lower case.
194 Write a program that count number of upper case, lower case, digit, space & other character in a file.
195 Write a program that displays the frequency of every character in a file.
16. File Read & Write
196 Write a program that read first n numbers from a file & display in another file.
Write a program that read all numbers from a file Data.in & display even numbers in Even.out, odd numbers in
197
odd.out.
198 Write a program that read all numbers from a file & write another file in descending order.
17. Structure
199 Write a program that read & display any students name, roll & mark.
200 Write a program that read & display some students name, roll& mark.
201 Write a program that read some students name, roll & mark from a file & display in screen.
Write a program that read some students name, roll & mark from a file, sort & display in screen according to
202
mark.
Write a program that read some students name, three subjects mark & display name, total, average mark &
203
grade apoint
Write average.
program that readroll, three subjects mark & display highest mark in each subjects & highest total with
204
the students
Write rollwho
a program that obtained
read some this.
players name, team name & batting average & display all according toteam
205
name.
206 A file contains some personname & telephone numbers. Write a program that……
207 i) Read telephonenumber & display name.
208 ii) Read name & displaytelephone number.
A file contains some country name & capital. Write a program that repeatedly read any country name & display
209
capital until user enters the word “End”.
210 A file contains some hotels name, address, grade, charge & number of rooms. Write a program that……..
211 i) Display all hotels information with given grade.
212 ii) Display all hotels information whose charge is less than giver charge.
213 A file contains some players name, team name, and batting average & display team wise player information.
214 18. Function
215 Write a function that gets two integers & returns sum.
216 Write a function that gets two integers & returns multiply.
217 Write a function that gets two integers & returns division.
218 Write a function that gets two integers & returns subtract.
219 Write a function that gets two integers & returns maximum.
220 Write a function that gets two integers & returns minimum.
221 Write a function that gets length & width of a rectangle & returns area.
222 Write a function that gets radius of a circle & returns area.
223 Write a function that gets three integers number & returns maximum.
224 Write a function that gets three integers number & returns minimum.
225 Write a function that gets three integers number & returns medium.
226 Write a function that gets any positive integer & returns its factorial.
227 Write a function that gets any positive integer & returns its digital sum.
228 Write a function that gets any positive integer & returns its digital root.
229 Write a function that gets any positive integer & returns its reverse.
230 Write a function that gets two positive integers & returns GCD (Greatest Common Divisor).
231 Write a function that gets two positive integers & returns LCM (Least Common Multiple).
232 Write a function that gets two positive integers(x,y) & returns xy (x to the power y).
233 Write a function that gets two positive integers & returns nPr (Permutation).
234 Write a function that gets two positive integers & returns nCr (Combination).
235 Write a function that gets any positive integers & determine prime or not prime.
236 Write a function that gets anarray & returns sum.
237 Write a function that gets anarray & returns Average.
238 Write a function that gets anarray & returns Maximum.
239 Write a function that gets anarray & returns minimum.
240 Write a function that searches any number in anarray.
241 Write a function that sort anarray.
242 Write a function that gets a string & returns its length.
243 Write a function that gets a string & reverse all character.
244 Write a function that gets a string & convert it to upper case.
245 Write a function that gets a string & convert it to lower case.
246 Write a function that copies one string over another string.
247 19. Recursive Function
248 Write a recursive functionthat gets any positive integer & returns factorial.
249 Write a recursive functionthat returns n’th Fibonaccinumber.
250 20. Pointer
251 A program that reads & displays any number.
252 A program that reads two numbers & displays sum.
253 A program that reads two numbers & displays subtracts.
254 A program that reads two numbers & displays multiply.
255 A program that reads two numbers & displays division.
256 A program that reads two numbers & displays remainder.
257 A program that reads two numbers & display maximum.
258 A program that reads two numbers & display minimum.
259 A program that reads three numbers & display maximum.
260 A program that reads three numbers & display minimum.
261 A program that reads three numbers & display medium.
262 A program that reads two floating point numbers & display maximum.
263 A program that reads two floating point numbers & display minimum.
264 A program that reads two long numbers & display maximum.
265 A program that reads two long numbers & display minimum.
266 A program that reads two double numbers & display maximum.
267 A program that reads two double numbers & display minimum.
268 A program that reads two character & display maximum.
269 A program that reads two character & display minimum.
270 A program that reads two string & display maximum.
271 A program that reads two string & display minimum.
272 A program that reads any integer & display positive, negative or zero.
273 A program that read a digit & display spelling.
274 A program that reads any positive integer & display in roman digit.
275 A program that read a positive integer & display its factorial.
276 A program that read a positive integer & display sum of its digit.
277 A program that reads & display an array.
278 A program that reads an array & display sum.
279 A program that reads an array & display average.
280 A program that reads an array & display maximum.
281 A program that reads an array & display minimum.
282 A program that reads an array & search any given number.
283 A program that reads an array & sort them.
284 A program that generates first n Fibonacci numbers.
285 A program that convert a line to upper case.
286 A program that convert a line to lower case.
287 A program that read any word & display every character with one space.
288 A program that read any word & display every character with one space in reverse order.
289 A program that read any line of text & display every character in separate line.
290 A program that read any line of text & display every character with ASCII value inseparate line.
291 A program that read any line of text & display number of upper case, lower case, digit, space & other character.
292 A program that read any line of text & display number of vowel, consonant, digit, space & other character.
293 A program that read any line of text & display the frequency of every letter.
294 A program that read any line of text & display the frequency of every character.
295 A program that read & display an array of string.
296 A program that read an array of string 7 display in alphabetic order (with case sensitive).
297 A program that read an array of string 7 display in alphabetic order (without case sensitive).
298 A program that read anybinary number & display equivalent decimal number.
299 A program that read any octalnumber & display equivalent decimal number.
300 A program that read anyhexadecimal number & display equivalent decimalnumber.
301 A program that read & display a matrix.
302 A program that adds two matrices.
303 A program that multiplies two matrices.
304 A program that read & display any students name, roll & mark.
305 A program that read & display some students name, roll & mark.
306 A program that create a link list to store some integer numbers.
307 A program that create a link list to store some character.
308 A program that create a link list to store some long numbers.
309 A program that create a link list to store some double numbers.
310 A program that create, insert & delete one way link list.
311 A program that create, insert & delete two way link lists.
312 A program that swaps two numbers.
8. Pyramid printing
313 1
1 2
1 2 3
314 1
2 2
3 3 3
315 1
0 0
1 1 1
316 2
3 4
4 5 6
317 1
2 3
3 4 5
318 0
1 0
0 1 0
319 1
0 1
1 0 1
320 A
B B
C C C
321 A
A B
A B C
322 1 2 3
1 2
1
323 3 3 3
2 2
1
324 1 1 1
0 0
1
325 1 0 1
1 0
1
326 4 5 5
3 4
2
327 3 4 5
2 3
1
328 0 1 0
1 0
0
329 1 0 1
0 1
1
330 C C C
B B
A
331 A B C
A B
A
332 1
1 2
1 2 3
333 1
2 2
3 3 3
334 1
0 0
1 1 1
335 1
1 0
1 0 1
336 1
2 2
3 3 3
337 A
B B
C C C
338 A
B B
C C C
B B
A
339 1
2 2
3 3 3
2 2
1
340 1
2 2
3 3 3
2 2
1
341 1
2 2
3 3 3
2 2
1
342 1
1 2 1
1 2 3 2 1
343 1
1 2 1
1 2 3 2 1
1 2 1
1
344 1
2 3 2
3 4 5 4 3
4 5 6 7 6 5 4
4 5 6 7 6 5 4
3 4 5 4 3
2 3 2
1
345 1
2 3 2
3 4 5 4 3
4 5 6 7 6 5 4
4 5 6 7 6 5 4
3 4 5 4 3
2 3 2
1
346 1
2 3
4 5 6
7 8 9 10
11 12 13 14 15
347 1
2 1
3 3 1
4 6 4 1
5 10 10 5 1
348 1
1 1
1 2 1
1 3 3 1
1 4 6 4 1
1 5 10 10 5 1
1 6 15 20 15 6 1

You might also like