EdocGram
Home
(current)
Topics
EdocAI
Code Editor
HTML
Javascript
PHP
Python
Python AI Code Editor
More
Contact
About
Privacy Policy
Terms and Conditions
Log In
Topic
View
More
Topic
Hashing
Linked List
Queue
Stack
Backtracking
Dynamic Programming
Graph Theory
Bit Manipulation
Mathematics
Sliding Window Technique
Divide And Conquer
Matrix Manipulation
Two Pointers
Tree
Topic: language-problem / Level: beginner
1. Write a program to print "Hello, World" to the console.
2. Write a program to add two integers.
3. Write a program to find the largest of three numbers.
4. Write a program to check if a number is even or odd.
5. Write a program to calculate the sum of the first n natural numbers.
6. Write a program to reverse a given integer.
7. Write a program to find the minimum and maximum of three numbers.
8. Write a program to swap two numbers without using a third variable.
9. Write a program to find the factorial of a given number using a loop.
10. Write a program to count the number of digits in a number.
11. Write a program to find the sum of two floating-point numbers.
12. Write a program to check if a given year is a leap year.
13. Write a program to convert Celsius to Fahrenheit.
14. Write a program to print the multiplication table of a given number.
15. Write a program to find the smallest number in an array.
16. Write a program to count the number of vowels in a string.
17. Write a program to find the ASCII value of a character.
18. Write a program to implement a simple interest calculator.
19. Write a program to check if a number is prime.
20. Write a program to generate the first n prime numbers.
21. Write a program to calculate the area of a circle given its radius.
22. Write a program to print the even numbers from 1 to n.
23. Write a program to reverse a string using a function.
24. Write a program to implement a simple counter using a loop.
25. Write a program to find the largest digit in a number.
26. Write a program to merge two arrays into a third array.
27. Write a program to remove duplicates from an array.
28. Write a program to print the first n natural numbers.
29. Write a program to find the frequency of each digit in a number.
30. Write a program to find the sum of the digits of a number.
31. Write a program to check if a string contains only digits.
32. Write a program to find the factorial of a number using recursion.
33. Write a program to swap two numbers using pointers.
34. Write a program to implement a simple number guessing game.
35. Write a program to calculate the power of a number using loops.
36. Write a program to check if a triangle is valid based on the lengths of its sides.
37. Write a program to find the nth Fibonacci number using recursion.
38. Write a program to print the reverse of an array.
39. Write a program to count the number of words in a sentence.
40. Write a program to check if a given string is a valid identifier.
41. Write a program to convert binary to decimal.
42. Write a program to calculate the sum of an array using a function.
43. Write a program to find the largest of four numbers.
44. Write a program to find the smallest number in an array using a function.
45. Write a program to print all prime numbers between 1 and 100.
46. Write a program to implement a simple to-do list using arrays.
47. Write a program to sort an array of integers using selection sort.
48. Write a program to implement a simple text-based menu.
49. Write a program to calculate the average of numbers in an array.
50. Write a program to find the difference between the largest and smallest elements in an array.
Previous
1
2
...
21
Next
More Levels
Intermediate
Advanced
Aniket The Programmer
This website is managed by aniket the programmer :)
Website
Instagram