C Programming

Basic Programming Questions with example

Basic Questions

  1. Write a program to print hello world
  2. Write a program to input the value of different datatype and print them
  3. Write a program to generate an electricity bill using a ladder if-else
  4. Write a program to determine whether a person is eligible for a vote or not
  5. Write a program to check whether the entered number is prime or not using do-while-loop
  6. Write a program to enter marks of five subjects and find their sum and percentage
  7. Write a program to enter a three-digit number and find sum and print
  8. Write a program to check the character is an alphabet or not
  9. Write a program to swap two numbers using the third variable
  10. Write a program to swap two numbers without using a third variable
  11. Write a program to print a table of a number having start limit and end limit using for loop
  12. Write a program to find even and odd numbers between range m to n and find their sum using the while loop
  13. Write a program to Count the Number of Vowels, Consonants, and so on
  14. Write a program to find the largest of three numbers using a conditional operator or ternary operator
  15. Write a program to find the largest of three numbers using if-else
  16. Write a program to calculate square root using the goto statement
  17. Write a program to Calculate the Power of a Number
  18. Write a program to Add Two Integers
  19. Write a program to Calculate the Average of array elements enter by users
  20. Write a program to Check Whether a Number is Positive or Negative
  21. Write a program to Calculate the Sum of Natural Numbers
  22. Write a Program to Find Largest Element in an Array
  23. Write a Program to Find the Length of a String
  24. Write a program to find the size of int, float, double, and char



No comments:

Post a Comment