C Lab Cycle
C Lab Cycle
EXPERIMENT
1. Write a C program to print Hello World
2.Write a C program to add two numbers (2 and 6) and display its sum.
3. Write a C program to read two numbers from keyboard and display its sum.
10. Write a program to swap values of two variables without using a third variable.
11. Write a program to read age from the user and check whethet he/she is eligible to vote using
conditional operator
12. . Write a C program to check whether a number is positive or negative using ternary operator
13. Write a program to find the largest of two numbers using if-else statement
14. Write a program to check whether a number is even or odd using if else statement.
18. Write a C program to determine whether the character entered is Vowel or Consonant.
21. Write a program to determine whether the input character is capital or small letter,digits or special
symbol.
27. Write a C program to print the numbers divisible by 5 upto a given limit.
30.Write C program to count the number of lines, words and characters in a given text
33. Write a program to reverse a given integer and check if it is palindrome or not
35. Write a program to print the sum of digits of a number using while loop.
36. Write a C program to print the day name using switch statement
37. Write a C program, which takes two integer operands and one operator from the user, performs
the operation and then prints the result.(Use switch)
38. Write a C program to check whether a character entered is vowel or consonant using switch
statement.
LAB EXAM NO 1
39. Write a C program to find the sum of two numbers using function
40. Write a C program to find the factorial of a number without using recursive function
41. Write a C program to find the factorial of a number using recursive function
42. Write a C program to calculate the following series
43. Write a C program to swap two values using call by value and call by reference method.
44. Write a program to insert 5 elements into an array and print the elements of the array
48. Write a Program to find the largest and smallest element in Array.
51. Write a program to accept a string and count the number of vowels present in this string.
LAB EXAM NO 2