L J POLYTECHNIC
1ST YEAR CE-IT
C PROGRAMMING PRACTICAL LIST
21. Write a C program to convert bit into byte, kb,mb,gb,tb.
22. Write a C program to print explicit type conversion.
23. Write a C program to print enum datatype.
24. Write a C program to swap two values using 3rd Variable.
25. Write a C program to swap two values without using 3rd variable.
26. Write a C program to print the result : (a+b)*(a*c)/(5*a)+(c+d)
27. Write a C program to print Multiplication Table.
28. Write a C program to print Binary and Unary Operators.
29. Write a C program to print Increment and Decrement Operators.
30. Write a C program to print 1 to 10 numbers using increment Operator.
31. Write a C program to demonstrate Relational Operator.
32. Write a C program to demonstrate Logical Operator.
33. Write a C Program to find the Size of int, float, double and char datatype.
34. Write a C program to demonstrate Ternary Operator or Conditional Operator.
35. Write a C program to check if a number entered by the user is odd or even.
36. Write a C program to check if a number entered by the user is a positive number or not.
37. Write a C program to find maximum and minimum number from 2 numbers entered by
the user.
38. Write a C program that reads a number from 1 TO 7 and then print the corresponding
day name from the week.
39. Write a C program to check the eligibility of a student for admission.
Student should fulfill the following criteria for admission:
Mathematics >= 50 Physics >= 45 Chemistry >= 60 Total of all subject >= 170
OR
Total of Mathematics + Physics >= 120
Accept the marks of all three subjects from the user and check if the student is eligible
for admission.
Print the message: Student is eligible for admission
OR
Student is not eligible for admission
39. Write a program to read marks from keyboard and your program should display equivalent grade
according to following table.
==================
Marks Grade
===================
0-34 Fail
35-59 Second Class
60-79 First Class
80-59 Dist
40. Write a C program to create basic arithmetic calculator that performs +,-,*,/,% on 2 integer numbers. Make
use of Switch case.
41. Write a program that read a number from 1 TO 7 and then print corresponding day name from the week using
switch case.
42. Write a program that read a number from 1 TO 12 and then print corresponding month name using switch
case.
43. Write a C program to print 1st 10 positive natural numbers using While Loop.
44. Write a C program to print factorial of a given number using While Loop.
45. Write a C program to print Fibonacci series till n terms entered by user using While Loop.
46. Write a C program that prints individual digits of a number entered by user using while Loop.
47. Write a C program to check if a number entered by user is Armstrong number or not using for loop.
48. Write a C program to check if a number entered by user is palindrome or not using for loop.
49. Write a C program to print positive even numbers between 1 to 10 in reverse order using for loop.
50. Write a C program to print positive odd numbers between 1 to 10 in reverse order using for loop.
51. Write a C program to print following pattern using nested loops.
*
**
***
****
*****
52. Write a C program to print following pattern using nested loops.
1
12
123
1234
12345
53. Write a C program to print following pattern:
aaaaa
bbbbb
ccccc
ddddd
eeeee
54. Write a C program to print following pattern:
$$$$$
$$$$
$$$
$$
$
55. Write a C program to print following pattern using nested loops.
*
**
***
****
*****
****
***
**
*