C1 Min Read LetuscrackonFebruary 17, 2025 Perfect Squares – Till N Given a positive integer N as the input, print all the perfect squares till N (inclusive of N). Input Format:The first line contains N. Output…
C Python1 Min Read LetuscrackonJanuary 14, 2025 Pattern Printing – Till N & Reverse Problem Statement Write a program that accepts an integer N and prints a total of 2N lines, following the pattern shown in the examples below.…
InfyTQ Python1 Min Read LetuscrackonDecember 7, 2024 Sum and Reverse Till Palindrome The program must accept an integer N as the input. The program must find the palindrome formed by performing the following operations.–…
Python1 Min Read LetuscrackonNovember 5, 2024 Print String Till Character In Python A string S is passed as the input. Character C is also passed as the input. The program must print the string value S till C is encountered.…
Python1 Min Read LetuscrackonNovember 4, 2024 Multiple of N till divisible by X Two numbers N and X are passed as input. The program must print the multiples of N (starting from 1) and must stop when the multiple is…
Java1 Min Read LetuscrackonJune 11, 2024 Remove First And Last Till End Given a string S, print the string S removing first and last character till no characters are left. Boundary Condition :1 <= Length of…
Python1 Min Read LetuscrackonJune 10, 2024 String – Print till char A string S is passed as input along with a character C. The program must print the string value S till C is reached. Input Format:The first…
C1 Min Read LetuscrackonJune 10, 2024 Reverse the string value till last vowel Reverse the string value till last vowelGiven a string S, the program must reverse the string till last vowel. (All alphabets will be in…
Java Python1 Min Read LetuscrackonJune 9, 2024 Reverse String Till Underscore String S is passed as the input to the program. S may or may not have a single underscore embedded in it. The program must reverse the String…
Python1 Min Read LetuscrackonJune 5, 2024 Print till First Non-Alphabet Print till First Non-Alphabet: The program must print the given input String S till the first non alphabet character in the input String…