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: mathematics-problem / Level: beginner
1. Write a program to find the sum of the first n natural numbers.
2. Create a function to check if a given number is prime.
3. Implement a program to calculate the factorial of a number using recursion.
4. Write a program to find the greatest common divisor (GCD) of two numbers.
5. Write a function to generate the Fibonacci series up to a given number of terms.
6. Create a program to determine if a number is even or odd.
7. Write a function to calculate the sum of the digits of a number.
8. Implement a program to check if a string is a palindrome.
9. Write a program to find the minimum and maximum of three numbers.
10. Create a function to find the area of a circle given its radius.
11. Write a program to calculate the perimeter of a rectangle.
12. Implement a function to check if a number is a perfect square.
13. Create a program to calculate the average of a set of numbers.
14. Write a program to convert a temperature from Celsius to Fahrenheit.
15. Implement a program to find the cube of a number without using the pow function.
16. Write a function to generate the first n prime numbers.
17. Create a program to find the sum of the first n odd numbers.
18. Write a program to check if a year is a leap year.
19. Implement a function to find the factorial of a number using iteration.
20. Create a program to count the number of vowels in a string.
21. Write a program to reverse the digits of an integer.
22. Implement a program to find the number of digits in a number.
23. Create a function to compute the LCM of two numbers.
24. Write a program to find the largest digit in a number.
25. Implement a function to calculate the sum of the first n even numbers.
26. Create a program to print the multiplication table of a number.
27. Write a function to find the first n Fibonacci numbers.
28. Implement a program to check if two strings are anagrams.
29. Create a function to find the number of occurrences of a specific character in a string.
30. Write a program to calculate the distance between two points in a 2D plane.
31. Implement a function to find the sum of an array of integers.
32. Create a program to count the number of consonants in a string.
33. Write a program to calculate the area of a triangle given its base and height.
34. Implement a function to check if a given number is a Armstrong number.
35. Create a program to determine if a given string contains only digits.
36. Write a program to find the median of an array of numbers.
37. Implement a program to find the smallest number in an array.
38. Create a function to calculate the sum of an arithmetic series.
39. Write a program to calculate the power of a number using loops.
40. Implement a function to find the number of unique characters in a string.
41. Create a program to determine the largest number from a set of inputs.
42. Write a program to print the digits of a number in reverse order.
43. Implement a function to calculate the sum of squares of the first n natural numbers.
44. Create a program to find the minimum value in a list of numbers.
45. Write a function to check if a number is a perfect number.
46. Implement a program to find the number of prime numbers in a given range.
47. Create a function to calculate the sum of two fractions.
48. Write a program to generate all combinations of a string.
49. Implement a program to check if a string is a valid identifier.
50. Create a function to find the second largest number in an array.
Previous
1
2
...
20
Next
More Levels
Intermediate
Advanced
Aniket The Programmer
This website is managed by aniket the programmer :)
Website
Instagram