0% found this document useful (0 votes)
8 views1 page

C Programming Practice Questions

The document contains a set of programming questions for C language, dated September 2025. It includes tasks such as finding the first and last digit of a number, counting digit frequency, printing a hollow square, and checking if three sides can form a triangle. Each question specifies requirements for user input validation and program functionality.

Uploaded by

Dia Nair
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views1 page

C Programming Practice Questions

The document contains a set of programming questions for C language, dated September 2025. It includes tasks such as finding the first and last digit of a number, counting digit frequency, printing a hollow square, and checking if three sides can form a triangle. Each question specifies requirements for user input validation and program functionality.

Uploaded by

Dia Nair
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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).

You might also like