numbers


1. Integer Representation

int num = 123; // 32-bit integer
long long big_num = 1234567890123456789; // 64-bit integer

2. Floating-Point Representation

float fnum = 1.23f; // 32-bit floating-point
double dnum = 1.23456789; // 64-bit floating-point

3. Mathematical Operations

int result = num + big_num; // addition
float product = fnum * dnum; // multiplication

4. Arithmetic Assignment

num += 10; // num is now 133
big_num /= 2; // big_num is now 617283945061728445

5. Comparison Operators

if (num > big_num) {
    // This condition won't be true
}
if (fnum == 1.23f) {
    // This condition will be true
}

6. Relational Operators

7. Bitwise Operators

8. Increment and Decrement Operators

9. Signed and Unsigned Integers

10. Constants

11. Random Numbers

12. Number Formatting

13. String to Number Conversion

14. Number to String Conversion

15. Hexadecimal Representation

16. Octal Representation

17. Number of Digits

18. Sum of Digits

19. Largest Digit

20. Prime Number Check

21. Factorial Calculation

22. Square Root

23. Fibonacci Sequence

24. Greatest Common Divisor

25. Least Common Multiple

26. Check if a Number is Even

27. Check if a Number is Odd

28. Rounding Numbers

29. Counting Set Bits

30. Reversing a Number

31. Palindrome Check

32. Armstrong Number

33. Perfect Number

34. Amicable Numbers

35. Mersenne Prime

36. Inverse Modulo

37. Binary Search for a Number

38. Sort a List of Numbers

39. Calculate the Mean

40. Calculate the Median

41. Calculate the Mode

42. Find the Minimum and Maximum

43. Find the Sum of Squares

44. Calculate the Standard Deviation

45. Convert to Different Number Bases

46. Perform Arithmetic Operations on Vectors of Numbers

47. Generate a Random Number Generator

48. Check if a Number is a Power of 2

49. Check if a Number is a Fibonacci Number

50. Find the N-th Prime Number