0% found this document useful (0 votes)
72 views

C Programs

The document contains descriptions of programming problems and exercises involving conditionals, loops, strings, numbers, and functions. It includes tasks like finding the biggest/smallest of four numbers, checking if a year is a leap year, converting case of characters and strings, looping through numbers and strings, counting characters in a string, converting numbers to words, checking for prime and Armstrong numbers, reversing numbers and strings, and printing in reverse order. Many can be solved using techniques like ternary operators, while loops, functions, and switches.

Uploaded by

harilal9285
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
72 views

C Programs

The document contains descriptions of programming problems and exercises involving conditionals, loops, strings, numbers, and functions. It includes tasks like finding the biggest/smallest of four numbers, checking if a year is a leap year, converting case of characters and strings, looping through numbers and strings, counting characters in a string, converting numbers to words, checking for prime and Armstrong numbers, reversing numbers and strings, and printing in reverse order. Many can be solved using techniques like ternary operators, while loops, functions, and switches.

Uploaded by

harilal9285
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

22.

Program to find biggest of four no by using ternary numbers

23. Program to print smallest of four no by using ternary operators

24. Program to accept a year and check the given year is leap or not by using ternary

25. Program to accept a character in the uppercase and print in lower case.

26. Program to accept a character in any case and print in another case.

27. Program to natural number from 1 to 10 by using while loop.

28. Program to accept a string and print it by using the while loop.

29. Program to accept a string in upper case and print it by lower case.

30. Program to accept a string in any case and print it by another case.

31. Program to accept a string print each word in new line.

32. Program to accept a string and count no of capital letters, no. of small letters and no. of
special characters

33. Program to accept any single digit number and print it in words.

34. Program to print prime numbers between 1 to 100

35. Program to accept two numbers and print sum of two numbers by using functions

36. Program to accept a number and find factorial of given number

37. Program to accept a number and check the given number Armstrong or not

38. Program to accept a number and print the sum of given and Reverse number

39. Program to accept 10 numbers and print first five numbers in original order and print last five
numbers in reverse order.

40. Program to accept a string and print the reverse of the given string by using for loop.

41. Program to accept a string and check the given string is palindrome or not.

Using switch: 1. Factorial of a number.


2. Prime or not
3. Odd or even
4. Exit

You might also like