Programming Questions
September 2025
Questions
1. Write a C program to input a number from user and find first and last
digit of number using loop. Also write conditions that user should always
input number only. If user input characters it should give erroe ”Please
enter valid input.”. Program should also work with negative numbers.
2. Write a C program to count frequency of digits in a given number.
3. Write a program to print hollow square in C.
4. Write a C program to check whether three sides entered by the user can
form a triangle or not (sum of any two sides must be greater than the
third side).