The document outlines 7 programming assignments for a C programming lab. The assignments include: 1) Writing a program to find the highest common factor (HCF) and lowest common multiple (LCM) of two numbers. 2) Displaying all letters from A to Z using a loop. 3) Reading a weekday number and printing the corresponding weekday name using a switch statement. 4) Converting between Celsius and Fahrenheit temperatures using a switch statement. 5) Printing all combinations of the digits in a number. 6) Calculating the nCr function. 7) Finding the next prime number that is also a palindrome given a starting number.
The document outlines 7 programming assignments for a C programming lab. The assignments include: 1) Writing a program to find the highest common factor (HCF) and lowest common multiple (LCM) of two numbers. 2) Displaying all letters from A to Z using a loop. 3) Reading a weekday number and printing the corresponding weekday name using a switch statement. 4) Converting between Celsius and Fahrenheit temperatures using a switch statement. 5) Printing all combinations of the digits in a number. 6) Calculating the nCr function. 7) Finding the next prime number that is also a palindrome given a starting number.
The document outlines 7 programming assignments for a C programming lab. The assignments include: 1) Writing a program to find the highest common factor (HCF) and lowest common multiple (LCM) of two numbers. 2) Displaying all letters from A to Z using a loop. 3) Reading a weekday number and printing the corresponding weekday name using a switch statement. 4) Converting between Celsius and Fahrenheit temperatures using a switch statement. 5) Printing all combinations of the digits in a number. 6) Calculating the nCr function. 7) Finding the next prime number that is also a palindrome given a starting number.
1. Write a C program to find HCF and LCM of two numbers.
2. Write a C program to Display Characters from A to Z Using Loop 3. Write a C program to read weekday number and print weekday name using switch 4. Write a C program using switch to convert Celsius to Fahrenheit and Fahrenheit to Celsius. F=(9C/5)+32 5. Write a program to print all combinations of one or more digits of a number. For example, for a number 123 all possible combinations are 1, 2,3,12, 13,23, 123 6. Write a program which calculates ncr . 7. Write a program to find next prime palindrome. A user will enter a number ‘n’ and we have to find a number greater than ‘n’ which is a prime as well as palindrome. For example, if input is 7 than next number is 11, which is prime as well as palindrome.