Lab Assignments - C Programming - Final-2
Lab Assignments - C Programming - Final-2
Question Number
14. WAP to input a number and check number is greater than 22 or divisible by 5.
15. WAP to input three numbers from user and find maximum using nested if.
16. WAP to input three numbers from user and find second minimum number using nested if.
17. WAP to input student name and three subject marks from user and print its name, total of
marks, percentage and division using else if ladder.
Page|2
Dezyne E’cole College C Programming & Data Structure
18. WAP to input four numbers from user and find maximum number using else if ladder.
19. WAP to input a number from user and check number is one, two or three digit using else if
ladder.
20. WAP to input week numbers from user and print in words using switch case statement.
21. WAP to input a character from user and check character is vowel or not.
22. WAP to input television price from user and calculate net television amount: If television
is Colored & 24” discount = 10% or 32” discount = 15%. If television is B & W & 21”
discount = 12%.
23. WAP to input a character from user and check character is number, alphabet or special
character using conditional operator.
24. WAP to input starting and ending limit from user and print all the numbers between limit
using do while loop.
25. WAP to input a number from user and print number is Armstrong or not using while loop.
26. WAP to input a limit from user and print its Fibonacci series.
27. WAP to input a number from user and print number is palindrome or not using while loop
28. WAP to input a number from user and check number is prime of not using while loop.
29. WAP to input a limit from user and print all Armstrong numbers between limit.
30. WAP to input a limit from user and print all perfect numbers between limit.
31. WAP to print following patterns:
Page|3
Dezyne E’cole College C Programming & Data Structure
53. WAP to input multi word string from user and print it using while loop.
54. WAP to input a String from user and print it in the following pattern. (Example: Input Data
– DOG, Output – D, DO, DOG, O, OG, G).
Page|4
Dezyne E’cole College C Programming & Data Structure
55. WAP to input string in uppercase and print in lower case letters using arithmetic operations.
56. WAP to input two string in two different variables and concatenate without using strcat
function.
57. WAP to input two string from user and check both string are same or not without using
strcmp function.
58. WAP to input a string from user and print it in reverse order without using strrev function.
59. WAP to input a string from user and check string is palindrome or not using string function.
60. WAP to set 5 different sports name in one string variable and then input one sports name
form user and check sport name is available or not.
61. WAP to input a limit from user and print the following series. ( 1, 8 , 72, 46, 521… n).
62. WAP to input a limit from user and print Fibonacci Series.
63. WAP to input two numbers from user and pass into function and sum it.
64. WAP to input a number from user and print its factorial using return statement.
65. WAP to input three numbers from user and find maximum using function using return
statement.
66. WAP to demonstrate Function with arguments and one return value.
67. WAP to input two numbers from user and swap it using call by reference.
68. WAP to calculate area of circle, area of triangle and rectangle using nesting of function.
69. WAP to input a four digit number from user and print all prime digit available in number
using functions.
70. WAP to input a number and print its table using recursion.
71. WAP to input a number from user and print its factorial using recursion.
72. WAP to input a limit from user and print its Fibonacci series using recursion.
73. WAP to input a book detail from user and print it using structures.
74. WAP to input student details in one structure variable and copy all detail into another
structure variable.
75. WAP to input three student details from user and print it using array of structures.
Page|5
Dezyne E’cole College C Programming & Data Structure
76. WAP to input student name, id and three subjects marks from user and print all details with
total marks, percentage and division.
77. WAP to input three books details with price and print net amount using structures where
discount = 5% if price <200 else 10%.
78. WAP to input a number from user and print its address, value and pointer address and value
using pointer.
79. WAP to input a number from user and print its value with address using pointe to pointer.
80. WAP to input two numeric values and sum it using pointer.
81. WAP to input 10 elements from user and add all elements using pointer arithmetic.
82. WAP to input 5 elements from user and sort it using pointers (Array & Pointers)
83. WAP to input a string from user and print its ASCII values using Array & Pointers)
84. WAP to input five names from user using array of pointers and print all names with address.
85. WAP to input three numbers from user and print maximum using function returning
pointers.
86. WAP to show addition of two numbers using pointers to function.
87. WAP to input an employee details from user and print using pointer and structures.
88. WAP to input book details with price and print net price using pointer and structure where
discount = 20%.
Page|6