B – Small, Large, or Equal
Write a program which prints small/large/equal relation of given two integers a and b. Input Two integers a and b separated by a single space are given […]
Write a program which prints small/large/equal relation of given two integers a and b. Input Two integers a and b separated by a single space are given […]
Write a program which prints 1000 “Hello World”. Input There is no input for this problem. Output The output consists
Print unique elements of the array in the same order as they appear in the input.Note: Do not use any
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.