Python1 Min Read LetuscrackonNovember 27, 2024 Pattern Printing – Half Pyramid Using Asterisk The number of rows N is passed as the input. The program must print the half pyramid using asterisk *. Input Format:The first line contains N.…
C Java Python2 Min Read LetuscrackonJune 12, 2024 Create Two Numbers Using Higher and Lower Halves of Each Digit The program must accept an integer N as the input. The task is to form two new numbers by using the upper half and lower half of each digit of…
Python1 Min Read LetuscrackonJune 8, 2024 Series using Sum of Digits The program must accept two integers N and K as the input. The program must generate a series of integers based on the…
Python1 Min Read LetuscrackonJune 7, 2024 Divide by 2 for T times using Bitwise Operators The program must accept two integers N and T as the input. The program must divide the integer N by 2 for T…
Python1 Min Read LetuscrackonJune 7, 2024 Decimal Equivalent of Last X Bits using Bitwise Operators The program must accept two integers N and X as the input. The program must print the decimal equivalent of last X bits in…
Python1 Min Read LetuscrackonJune 7, 2024 Number without Pair using Bitwise Operators The program must accept a list of integers as the input. Among these integers, N/2 pairs (two integers having the same value) are…
C Kickstart1 Min Read LetuscrackonJune 6, 2024 Check If Tenth Digit is Odd or Even (Using if-else) The program must accept an integer N as the input. The program must print Odd if the tenth digit is odd. Else the…
C Kickstart1 Min Read LetuscrackonJune 6, 2024 Check if X is Greater than or Equal to Y (Using Ternary Operator) Accept two numbers X and Y as the input. The program must print YES if X is greater than or equal to Y. Else the…
C Kickstart1 Min Read LetuscrackonJune 6, 2024 Check If Two Integers are Equal (Using if-else) The program must accept two integers X and Y as the input. The program must print Equal if X and Y are equal.…
C Kickstart1 Min Read LetuscrackonJune 6, 2024 Print Odd or Even (Using if-else) The program must accept an integer N as the input. The program must print Odd if N is odd. Else the program must…