Practice level 1 · Beginner · 30 programs

Hello World and basics

printf, variables, input and simple maths.

The programs in this level

  1. Print Hello World
  2. Print your name
  3. Print your age
  4. Print your city
  5. Print multiple lines
  6. Print a sentence using printf()
  7. Print numbers 1 to 10
  8. Print numbers 10 to 1
  9. Print special characters
  10. Print a simple ASCII-art pattern
  11. Declare and print an integer
  12. Declare and print a float
  13. Declare and print a character
  14. Declare and print a double
  15. Print multiple variables
  16. Take name as input
  17. Take age as input
  18. Take integer input
  19. Take float input
  20. Take character input
  21. Add two numbers
  22. Subtract two numbers
  23. Multiply two numbers
  24. Divide two numbers
  25. Find remainder
  26. Calculate square of a number
  27. Calculate cube of a number
  28. Calculate average of two numbers
  29. Calculate average of three numbers
  30. Swap two numbers using a third variable

Unlock this lesson

Create a free account, then buy the course to open every lesson.

Everything in C Programming: BCA, MCA, BTech & O Level

  • 37 step-by-step lessons
  • 10 mini projects with solutions
  • A final project for your portfolio
  • Real commands and real output in every lesson
  • Practice task with a solution in each lesson
  • Progress saved to your account