I – Sum of all odd elements
Print sum of all odd elements in an array. Input Format First line of input contains N – the size […]
Your blog category
Print sum of all odd elements in an array. Input Format First line of input contains N – the size […]
Print right-angled triangle pattern. See example for more details. Input Format First line of input contains a single integer N
Print rectangle pattern. See example for more details. Input Format First and only line of input contains a single integer
Given a number N, reverse the number. Input Format First and only line of input contains a integer – N.
For a given positive integer – N, compute Nth fibonacci number. Input Format First and only line of input contains a
Given two integers a and b, compute a power b.Note: Do not use any inbuilt functions/libraries for your main logic.
One hot summer day Pete and his friend Billy decided to buy a watermelon. They chose the biggest and the
Given the length of 3 sides of a triangle, check whether the triangle is valid or not. Input Format First
Given the length and breadth of a rectangle, print area of the rectangle. Input Format First and only line of