forked from Imran4424/C-Problems-and-Solutions-step-by-step
-
Notifications
You must be signed in to change notification settings - Fork 0
/
readme.txt
1001 lines (737 loc) · 29.6 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1. Input Output
1.1. Write a program that prints your name
1.2. An integer variable contains 5. Write a program that prints value of n
1.3. Write a program that read and display an integer number
1.4. Write a program that read and display floating point number
1.5. Write a program that read and display a long number
1.6. Write a program that read and display a long integer number
1.7. Write a program that read and display double number
1.8. Write a program that read and display any character
1.9. Write a program that read ASCII value and display equivalent character
1.10. Wrtie a program that read any character and display equivalent ASCII value
1.11. Write a program that read any lower case character and display in upper case
1.12. Write a program that read any upper case character and display in lower case
1.13. Write a program that read any decimal number and display equivalent octal number
1.14. Write a program that read any decimal number and display equivalent hexadecimal number
1.15. Write a program that read any octal number and display equivalent decimal number
1.16. Write a program that read any hexadecimal number and display equivalent decimal number
1.17. Write a program that read as many characters as need to read your name and display the characters
sequencially without spaces
1.18. Write a program that read and display your name
1.19. Write a program that read and display a line of text
1.20. Write a program that read any date in the format DD/MM/YYYY and displays day, month and year separately
1.21. Write a program that read any date in the format DD-MM-YYYY and displays day, month and year separately
1.22. Write a program that read any date in the format DD MM YYYY and displays day, month and year separately
1.23. Write a program that read any date in the format DD,MM,YYYY and displays day, month and year separately
2. Operator
2.1. Write a program that read two integer and display sum
2.2. Write a program that subtracts two integers
2.3. Write a program that read two integers and display product
2.4. Write a program that read two integers and divide them
2.5. Write a program that read two floating point numbers and divide them
2.6. Write a program that read two integer and display remainder
2.7. Write a program that read radius of a circle and display the area
2.8. Write a program that read temperature in Celsius and display in Farenheit
2.9. Write a program that read temperature in Farenheit and display in Celsius
2.10. Write a program that read two numbers and display bitwise AND
2.11. Write a program that read two numbers and display bitwise OR
2.12. Write a program that read two numbers and display bitwise Exclusive OR
2.13. Write a program that read a number and divide by two using shift operator
2.14. Write a program that read a number and multiply by two using shift operator
2.15. Write a program that read a number and multiply by five using shift operator
2.16. Write a program that read a number and mod by four using bitwise AND
2.17. Write a program that read a number and mod by eight using bitwise AND
2.18. Write a C program to swap the values of two variables using temporary variable
2.19. Write a C program to swap the values of two variables without using temporary variable
2.20. Write a program that read two numbers and display maximum using ternary operator
2.21. Write a program that read two numbers and display minimum using ternary operator
2.22. Write a C program for swapping two numbers with temp variables
2.23. Write a C program for swapping two numbers without temp variables
3. Math.h
3.1. Write a program that read any integer number and display absolute value
3.2. Write a program that read any angle t and display sin(t)
3.3. Write a program that read any angle t and display cos(t)
3.4. Write a program that read any angle t and display tan(t)
3.5. Write a program that read any angle t and display cot(t)
3.6. Write a program that read any angle t and display sec(t)
3.7. Write a program that read any angle t and display cosec(t)
3.8. Write a program that read a value n and display sin inverse(n)
3.9. Write a program that read a value n and display cos inverse(n)
3.10. Write a program that read a value n and display tan inverse(n)
3.11. Write a program that read a value n and display cot inverse(n)
3.12. Write a program that read a value n and display sec inverse(n)
3.13. Write a program that read a value n and display cosec inverse(n)
3.14. Write a program that read two numbers x,y and display the value of X^Y
3.15. Write a program that read any number and display it's square root
3.16. Write a program that read any number x and display e^x
3.17. Write a program that read any number x and display log(x)
3.18. Write a program that read any number x and display log10(x)
4. Conditional Logic
4.1. Write a program that read an integer and prints odd or even
4.2. Write a program to determine whether a number is divisible by 5 or not
4.3. Write a program that read two numbers and display maximum
4.4. Write a program that read two numbers and display minimum
4.5. Write a program that read three numbers and display maximum
4.6. Write a program that read three numbers and display minimum
4.7. Write a program that read three numbers and display mediam
4.8. Write a program that read mark and display pass or fail
4.9. Write a program that read mark and display result in grade
4.10. Write a program that read any year and display its leap year or not
4.11. Write the code to check whether an input alphabet is a vowel or not. Both lower-case and upper-case should
be checked
4.12. Write a C program to input any character and check whether it is alphabet, digit or special character
4.13. Write a C program to check whether a character is uppercase or lowercase alphabet
4.14. Write a C program to generate a simple arithmetic calculator
hints:
enter two numbers: 6 5
select the menu:
1. Add
2. Subtract
3. Multiply
4. Divide
4.15. Write a program that read three numbers a,b,c and determine the roots of the quadratic equation:
ax^2 + bx + c = 0
4.16. Write a C program to input angles of a triangle and check whether triangle is valid or not
4.17. Write a C program to input all sides of a triangle and check whether triangle is valid or not
4.18. Write a C program to check whether the triangle is equilateral, isosceles or scalene triangle
5. Switch
5.1. Write a program that read a digit and diplay by spelling
5.2. Write a program that read any number and display equivalent roman number
5.3. Write a C program to print day of week name using switch case
5.4. Write a C program print total number of days in a month using switch case
5.5. Write a C program to create Simple Calculator using switch case
6. Series
6.1. Write a program to calculate the series: 1 + 2 + 3 + 4 + ... + n
6.2. Write a program to calculate the series: 2 + 4 + 6 + 8 + ... + n
6.3. Write a program to calculate the series: 1 + 3 + 5 + 7 + ... + n
6.4. Write a program to calculate the series: 4 + 12 + 20 + 28 + ... + n
6.5. Write a program to calculate the series: 2 + 5 + 8 + 11 + ... + n
6.6. Write a program to calculate the series: 1.2 + 2.3 + 3.4 + ... + n(n+1)
6.7. Write a program to calculate the series: 2.1 + 5.3 + 8.5 + ... + n
6.8. Write a program to calculate the series: 1.3 + 3.5 + 5.7 + ... + n(n+2)
6.9. Write a program to calculate the series: 1^2 + 2^2 + 3^2 + ... + n^2
6.10. Write a program to calculate the series: 1^2 + 3^2 + 5^2 + ... + n^2
6.11. Write a program to calculate the series: 1^3 + 2^3 + 3^3 + ... + n^3
6.12. Write a program to calculate the series: 1^1 + 2^2 + 3^3 + ... + n^n
6.13. Write a program to calculate the series: 1.1^2 + 2.3^2 + 3.5^2 + ... + n.n^2
6.14. Write a program to calculate the series: 1.1^2 + 2.3^2 + 3.4^2 + ... + n.n^2
6.15. Write a program to calculate the series: 1.2.3 + 2.3.4 + 3.4.5 + ... + n(n+1)(n+2)
6.16. Write a program to calculate the series: 2.5.8 + 5.8.11 + 8.11.14 + ... + n(n+3)(n+6)
6.17. Write a program to calculate the series: 5.6.7 + 6.7.8 + 7.8.9 + ... + n(n+1)(n+2)
6.18. Write a program to calculate the series: 1.3.5.7 + 3.5.7.9 + 5.7.9.11 + ... + n(n+2)(n+4)(n+6)
7. Pyramid
7.1.
1
1 2
1 2 3
7.2.
1
2 2
3 3 3
7.3.
1
0 0
1 1 1
0 0 0 0
1 1 1 1 1
7.4.
1
1 0
1 0 1
1 0 1 0
1 0 1 0 1
7.5.
2
3 4
4 5 6
5 6 7 8
6 7 8 9 10
7.6.
1
2 3
3 4 5
4 5 6 7
5 6 7 8 9
7.7.
0
1 0
0 1 0
1 0 1 0
0 1 0 1 0
7.8.
1
0 1
1 0 1
0 1 0 1
1 0 1 0 1
7.9.
A
B B
C C C
D D D D
E E E E E
7.10.
A
A B
A B C
A B C D
A B C D E
7.11.
1 2 3 4 5
1 2 3 4
1 2 3
1 2
1
7.12.
5 5 5 5 5
4 4 4 4
3 3 3
2 2
1
7.13.
1 1 1 1 1
0 0 0 0
1 1 1
0 0
1
7.14.
1 0 1 0 1
1 0 1 0
1 0 1
1 0
1
7.15.
6 7 8 9 10
5 6 7 8
4 5 6
3 4
2
7.16.
5 6 7 8 9
4 5 6 7
3 4 5
2 3
1
7.17.
0 1 0 1 0
1 0 1 0
0 1 0
1 0
0
7.18.
1 0 1 0 1
0 1 0 1
1 0 1
0 1
1
7.19.
E E E E E
D D D D
C C C
B B
A
7.20.
A B C D E
A B C D
A B C
A B
A
7.21.
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
7.22.
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5
7.23.
1
0 0
1 1 1
0 0 0 0
1 1 1 1 1
7.24.
1
1 0
1 0 1
1 0 1 0
1 0 1 0 1
7.25.
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5
1 space between digits
7.25.2.
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5
3 space between digits
7.26.
A
B B
C C C
D D D D
E E E E E
1 space between digits
7.26.2.
A
B B
C C C
D D D D
E E E E E
3 space between digits
7.27.
A
B B
C C C
D D D D
E E E E E
D D D D
C C C
B B
A
7.28.
A
B B
C C C
D D D D
E E E E E
D D D D
C C C
B B
A
1 space between digits
7.28.2.
A
B B
C C C
D D D D
E E E E E
D D D D
C C C
B B
A
3 space between digits
7.29.
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5
4 4 4 4
3 3 3
2 2
1
1 space between digits
7.29.2.
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5
4 4 4 4
3 3 3
2 2
1
3 space between digits
7.30.
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5
4 4 4 4
3 3 3
2 2
1
7.31.
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5
4 4 4 4
3 3 3
2 2
1
7.32.
1
1 2 1
1 2 3 2 1
1 2 3 4 3 2 1
1 2 3 4 5 4 3 2 1
7.33.
1
1 2 1
1 2 3 2 1
1 2 3 4 3 2 1
1 2 3 4 5 4 3 2 1
1 2 3 4 3 2 1
1 2 3 2 1
1 2 1
1
7.34.
1
2 3 2
3 4 5 4 3
4 5 6 7 6 5 4
5 6 7 8 9 8 7 6 5
6 7 8 9 10 11 10 9 8 7 6
7 8 9 10 11 12 13 12 11 10 9 8 7
6 7 8 9 10 11 10 9 8 7 6
5 6 7 8 9 8 7 6 5
4 5 6 7 6 5 4
3 4 5 4 3
2 3 2
1
3 space between digits
7.35.
1
2 3 2
3 4 5 4 3
4 5 6 7 6 5 4
5 6 7 8 9 8 7 6 5
6 7 8 9 10 11 10 9 8 7 6
7 8 9 10 11 12 13 12 11 10 9 8 7
6 7 8 9 10 11 10 9 8 7 6
5 6 7 8 9 8 7 6 5
4 5 6 7 6 5 4
3 4 5 4 3
2 3 2
1
3 space between digits
7.36.
1
2 3 2
3 4 5 4 3
4 5 6 7 6 5 4
5 6 7 8 9 8 7 6 5
6 7 8 9 0 1 0 9 8 7 6
7 8 9 0 1 2 3 2 1 0 9 8 7
6 7 8 9 0 1 0 9 8 7 6
5 6 7 8 9 8 7 6 5
4 5 6 7 6 5 4
3 4 5 4 3
2 3 2
1
1 space between digits
7.36.2
1
2 3 2
3 4 5 4 3
4 5 6 7 6 5 4
5 6 7 8 9 8 7 6 5
6 7 8 9 0 1 0 9 8 7 6
7 8 9 0 1 2 3 2 1 0 9 8 7
6 7 8 9 0 1 0 9 8 7 6
5 6 7 8 9 8 7 6 5
4 5 6 7 6 5 4
3 4 5 4 3
2 3 2
1
3 space between digits
7.37.
1
2 3
4 5 6
7 8 9 10
11 12 13 14 15
3 space between digits
7.38.
1
2 1
3 3 1
4 6 4 1
5 10 10 5 1
6 15 20 15 6 1
3 space between digits
7.39.
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
3 space between digits
8. Loop
8.1. Write down a program that can take a lower bound i and an upper bound n and then find out the summation of
those numbers which are even from i to n.
8.2. Write down a program that can take a lower bound i and an upper bound n and then find out the summation of
those numbers which are divisible by 3 from i to n.
8.3. Write a C program to print multiplication table of any number
8.4. Write a program that read a positive integer and display its factorial
8.5. Write a program that read a positive integer and display sum of its digit
8.6. Write a C program to find first and last digit of a number
8.7. Write a C program to find sum of first and last digit of a number
8.8. Write a C program to swap first and last digits of a number
8.9. Write a program that read any positive integer and display reverse
8.10. Write a program that read any positive integer and reverse the positive number
8.11. Write a C program to find one's complement of a binary number
8.12. Write a C program to find two's complement of a binary number
8.13. Write a program that read any decimal number and display equivalent binary number
8.14. Write a program that read any decimal number and display equivalent octal number
8.15. Write a program that read any decimal number and display equivalent hexadecimal number
8.16. Write a program that read two numbers and display GCD(greatest common divisor)
8.17. Write a program that read two numbers and display LCM(least common multiple)
8.18. Write a program that read two numbers(x,y) and display x^y (x power y) using loop
8.19. Write a program that read two numbers(n,r) and display nPr(Permutation)
8.20. Write a program that read two numbers(n,r) and display nCr(Combination)
8.21. Write a program that read any integer and display its digital root (using loop)
8.22. Write a program that read any integer and test that is prime or not
8.23. Write a program that prints all prime numbers from 1 to n
8.24. Write a program that prints all prime numbers from m to n (m > n)
8.25. Write a program that count total prime numbers from 1 to n
8.26. Write a program that displays first n prime numbers.
8.27. Write a program that displays first n Fibonacci
8.28. Write a program that displays all fibonacci numbers from 1 to n
8.29. Write a program that determine a number fibonacci or not
8.30. Write a C program to find out all the palindrome numbers in the range 0 to 10000. Also print the
palindrome numbers
Hint: If a positive integer and its reverse are same then the number is called a palindrome.
242 is parildrome because 242 = 242 (reversed but still same)
8.31. Write a C program to find out the perfect numbers in the range 0 to 10000. Also print them
Hint: a positive integer that is equal to the sum of its proper divisors.
The smallest perfect number is 6, which is the sum of 1, 2 and 3
8.32. Write a C program to find out the strong numbers in the range 0 to 10000. Also print them
Hint:
145 is strong number. Since, 1!+4!+5! = 145.
8.33. Write a C program to find out the armstrong numbers in the range 0 to 10000. Also print them
Hint:
371 is armstrong number. Since, 371 three digits, so, 3^3 + 7^3 + 1^3 = 371.
1634 is armstrong number. Since, 1634 four digits, so, 1^4 + 6^4 + 3^4 + 4^4 = 1634.
all single digit numbers are armstrong number.
8.34. Write a C program to check if an integer (entered by the user) can be expressed as the sum of two prime
numbers. Also show all of the possible combinations
Hint: Enter a positive integer: 34
34 = 3 + 31
34 = 5 + 29
34 = 11 + 23
34 = 17 + 17
8.35. Write a C program to print Pascal triangle upto n rows
9. goto, break, continue
10. One Dimensional Array
10.1. Write a program that read and display an array
10.2. Write a program that read an array and display sum
10.3. Write a program that read an array and display average
10.4. Write a program that read an array and display maximum
10.5. Write a program that read an array and display minimum
10.6. Write a program that inserts any number in an array
10.7. Write a program that deletes any number from an array
10.8. Write a program that searches any number from an array
10.9. write a program that read and sort an array in ascending order
10.10. write a program that read and sort an array in decending order
10.11. Write a program that read and sort an array using bubble sort in ascending order
10.12. Write a program that read and sort an array using bubble sort in decending order
10.13. Write a program that read an array and display median
10.14. Write a program that display first n fibonacci numbers using array
10.15. Write a program that display first n prime numbers using array
10.16. Write a program that reads any decimal number and display equivalent binary number
11. Multi Dimentional Array
11.1. Write a program that read and display read and display a 2D array
11.2. Write a program that read and display read and display a matrix
11.3. Write a program that adds two matrices
11.4. Write a program that substract two matrices
11.5. Write a program that multiply two matrices
11.6. Write a program that add and multiply two matrices
11.7. Write a program that displays Pascal Pyramid
1
2 1
3 3 1
4 6 4 1
5 10 10 5 1
3 spaces between 1 digits number, 2 spaces between 2 digits number
12. String
12.1. Write a program that displays a string (single word)
12.2. Write a program that displays a string (a line)
12.3. Write a program that converts a line to uppercase.
12.4. Write a program that converts a line to lowercase.
12.5. Write a program that read a line of text and display it's length
12.6. Write a program that read a line of text and display it in reverse order
12.7. Write a program that read your name and display every character with one space
12.8. Write a program that read your name and display every character with one space in reverse order
12.9. Write a program that read any line of text and display every character in separate line
12.10. Write a program that read any line of text and display every character with ASCII value in separate line
12.11. Write a program that read any line of text and display number of uppercase, lowercase, digits, spaces and
other characters
12.12. Write a program that read any line of text and display number of vowels, consonants, digits, spaces and
other characters
12.13. Write a program that read a line of text and displays the frequency of every character
12.14. Write a program that read two lines of text and copy second line into first line
12.15. Write a program that read two lines of text and add second line with first line
12.16. Write a program that compares two strings
12.17. Write a program that compares two strings without case sensitivity
12.18. Write a program that read and display an array of string
12.19. Write a program that read and display an array of strings with alphabetic order (without case sensitive)
12.20. Write a program that read and display an array of strings with alphabetic order (with case sensitive)
13. String.h
13.1. Write a program that read a line of text and display it's length
13.2. Write a program that read a line of text and display it in reverse order
13.3. Write a program that read two lines of text and copy second line into first line
13.4. Write a program that read two lines of text and add second line with first line
13.5. Write a program that read a line of text and display in lowercase
13.6. Write a program that read a line of text and display in uppercase
13.7. Write a program that compares two strings
13.8. Write a program that compares two strings without case sensitivity
14. Function
14.1.1. Write a function that reads two integers and display Addition
14.1.2. Write a function that reads two integers and returns Addition
14.1.3. Write a function that gets two integers and display Addition
14.1.4. Write a function that gets two integers and returns Addition
14.2.1. Write a function that reads two integers and display Substraction
14.2.2. Write a function that reads two integers and returns Substraction
14.2.3. Write a function that gets two integers and display Substraction
14.2.4. Write a function that gets two integers and returns Substraction
14.3.1. Write a function that reads two integers and display Multiplication
14.3.2. Write a function that reads two integers and returns Multiplication
14.3.3. Write a function that gets two integers and display Multiplication
14.3.4. Write a function that gets two integers and returns Multiplication
14.4.1. Write a function that reads two integers and display Division
14.4.2. Write a function that reads two integers and returns Division
14.4.3. Write a function that gets two integers and display Division
14.4.4. Write a function that gets two integers and returns Division
14.5.1. Write a function that reads two integers and display maximum
14.5.2. Write a function that reads two integers and returns maximum
14.5.3. Write a function that gets two integers and display maximum
14.5.4. Write a function that gets two integers and returns maximum
14.6.1. Write a function that reads two integers and display minimum
14.6.2. Write a function that reads two integers and returns minimum
14.6.3. Write a function that gets two integers and display minimum
14.6.4. Write a function that gets two integers and returns minimum
14.7.1. Write a function that reads three integers and display maximum
14.7.2. Write a function that reads three integers and returns maximum
14.7.3. Write a function that gets three integers and display maximum
14.7.4. Write a function that gets three integers and returns maximum
14.8.1. Write a function that reads three integers and display minimum
14.8.2. Write a function that reads three integers and returns minimum
14.8.3. Write a function that gets three integers and display minimum
14.8.4. Write a function that gets three integers and returns minimum
14.9.1. Write a function that reads three integers and display median
14.9.2. Write a function that reads three integers and returns median
14.9.3. Write a function that gets three integers and display median
14.9.4. Write a function that gets three integers and returns median
14.10. Write a function that gets length and width of a rectangle and returns area
14.11. Write a function that gets radius of a circle and returns area
14.12. Write a function that gets any positive integer and returns it's factorial
14.13. Write a function that gets any positive integer and returns it's digital sum
14.14. Write a function that gets any positive integer and returns it's digital root
14.15. Write a function that gets any positive integer and returns it's reverse
14.16. Write a function that gets any positive integer and determine it's prime or not
14.17. Write a function that gets two positive integer(a,b) and returns a to the power b
14.18. Write a function that gets two positive integer and returns nPr (Permutation)
14.19. Write a function that gets two positive integer and returns nCr (Combination)
14.20. Write a function that gets two positive integer and returns GCD (greatest common divisor)
14.21. Write a function that gets two positive integer and returns LCM (least common multiple)
14.22. Write a function that gets an array and returns sum
14.23. Write a function that gets an array and returns average
14.24. Write a function that gets an array and returns maximum
14.25. Write a function that gets an array and returns minimum
14.26. Write a function that gets an array and adds 10 to each element
14.27. Write a function that gets an array and subtract 15 from each element
14.28. Write a function that gets an array and product each element by 5
14.29. Write a function that searches any number in an array
14.30. Write a function that sorts an array Ascending
14.31. Write a function that sorts an array Decending
14.32. Write a C program to check whether a number is even or odd using functions
14.33. Write a C program to check whether a number is prime or not using functions
14.34. Write a C program to check whether a number is palindrome or not using functions
14.35. Write a C program to check whether a number is perfect or not using functions
14.36. Write a C program to check whether a number is strong or not using functions
14.37. Write a C program to find all prime numbers between a given interval using functions.
14.38. Write a C program to find all palindrome numbers between a given interval using functions.
14.39. Write a C program to find all perfect numbers between given a interval using functions.
14.40. Write a C program to find all strong numbers between given a interval using functions.
14.41. Write a function that gets a string and returns it's length
14.42. Write a function that gets a string and reverse all characters
14.43. Write a function that gets a string and convert it to uppercase
14.44. Write a function that gets a string and convert it to lowercase
14.45. Write a function that gets a string and copy to another string
14.46. Write a function that gets two string and compares them
14.47. Write a function that gets two string and concatenates (adds) them
15. Recursion
15.1. Write a recursive function that gets any positive integer and returns it's factorial
15.2. Write a recursive function that returns nth Fibonacci number.
15.3. Write a recursive function that prints 50 to 100.
15.4. Write a recursive function that prints the Fibonacci series.
15.5. Write a recursive function that prints 4 12 20 28 series up to 10.
15.6. Write a recursive function to calculate the series: 1 + 3 + 5 + 7 + ... + n
15.7. Write a recursive function to calculate the series: 1^2 + 2^2 + 3^2 + 4^2 + ... + n^2
15.8. Write a recursive function to calculate the series: 1^1 + 2^2 + 3^3 + 4^4 + ... + n^n
15.9. Write recursive functions to build the following pyramid
1
1 2
1 2 3
15.10. Write recursive functions to build the following pyramid
1
2 2
3 3 3
15.11. Write recursive functions to build the following pyramid
1
0 0
1 1 1
0 0 0 0
1 1 1 1 1
15.12. Write recursive functions to build the following pyramid
1
1 0
1 0 1
1 0 1 0
1 0 1 0 1
15.13. Write recursive functions to build the following pyramid
1
2 3
3 4 5
4 5 6 7
5 6 7 8 9
16. Pointer
16.1. Write a program that read any number and display it with pointer variables.
16.2. Write a program that read any number and change it with a pointer variable then display it.
16.3. Write a void function that gets two numbers and adds them, then display the result within main
function. (x + y)
16.4. Write a void function that gets two numbers and substract them, then display the result within main
function. (x - y)
16.5. Write a void function that gets two numbers and multiply them, then display the result within main
function. (x * y)
16.6. Write a void function that gets two numbers and divide them, then display the result within main
function. (x / y)
16.7. Write a void function that gets two numbers and determine maximum, then display the result within main
function.
16.8. Write a void function that gets two numbers and determine minimum, then display the result within main
function.
16.9. Write a void function that gets three numbers and determine maximum, then display the result within main
function.
16.10. Write a void function that gets three numbers and determine minimum, then display the result within main
function.
16.11. Write a void function that gets three numbers and determine median, then display the result within main
function.
16.12. Write a void function that gets a number and calculate factorial, then display the result within main
function.
16.13. Write a void function that gets a number and calculate sum of the digit, then display the result
within main function.
16.14. Write a void function that gets a number and reverse it, then display the result
within main function.
16.15. Write a void function that gets an array and find average, then display the result
within main function.
16.16. Write a program that read an array and display it. access the array with pointers not with indexing
operators[].
17. Structure
17.1. Write a program that read and display any student's name, roll, and total mark using structure
17.2. Write a program that read and display some student's name, roll, and total mark using structure
17.3. Write a program that read and display basic information of a departments students using structure
17.4. Write a program that read and display some student's name, roll, subject wise mark, total mark and
average using structure.
17.5. Write a program that read roll, three subjects mark and display the highest mark in each subjects and
highest total with the students roll who obtained this using structure.
17.6. Write a program that read some players name, team name and batting average. Display this accroding to
team name.
17.7. Write a program that read some students name, id, department and display them according to department.
18. File