Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 674 Bytes

File metadata and controls

35 lines (23 loc) · 674 Bytes
  • Write a program to reverse an array or string

    • Iterative way
    • Recursive way
  • Write a program to get sum of the digits of a number.

        int getSum(int n)
        {
            int sum = 0;
            while (n != 0) {  
                sum = sum + n % 10;
                n = n / 10;
            }
            return sum;
        }
    
  • Program to Check if a Given String is Palindrome

  • Sum of array elements

  • Maximum and Minimum element of array

  • Counting frequencies of array elements

  • Precision of Floating Point Numbers in C++

    • floor() Method
    • ceil() Method
    • trunc() Method
    • round()
    • setprecision()