## Print the first and last character of each word in a String

Given a string, the task is to print the first and last character of each word in a string. Examples: Input: Geeks for geeks Output:… Read More »

- Find the total guests that are present at the party
- Programs for printing pyramid patterns using recursion
- Count the number of holes in an integer
- Program to check if an Array is Palindrome or not
- Count how many times the given digital clock shows identical digits
- Replace array elements by sum of next two consecutive elements
- How to concatenate two Integer values into one?
- Cost of painting n * m grid
- Count Odd and Even numbers in a range from L to R
- Program to check if a number is divisible by sum of its digits
- Program to calculate product of digits of a number
- Position of a person diametrically opposite on a circle
- Check if the given array is mirror-inverse
- Print last character of each word in a string
- Find the sum of digits of a number at even and odd places
- Difference between while and do-while loop in C, C++, Java
- Check if it is possible to create a polygon with given n sides
- Check if a binary string contains consecutive same or not
- Difference between High Level and Low level languages
- Number of character corrections in the given strings to make them equal
- Reorder the position of the words in alphabetical order
- Remove first X rows and columns from a matrix
- Sum of all perfect numbers present in an array
- Print the first and last character of each word in a String
- Find the hypotenuse of a right angled triangle with given two sides
- Given number of matches played, find number of teams in tournament
- Increasing sequence with given GCD
- Smallest integer greater than n such that it consists of digit m exactly k times
- Menu Driven C++ Program for a Simple Calculator
- Find the number of ways to divide number into four parts such that a = c and b = d

Given a string, the task is to print the first and last character of each word in a string. Examples: Input: Geeks for geeks Output:… Read More »

Given a number, the task is to find the product of the digits of a number. Examples: Input: n = 4513 Output: 60 Input: n… Read More »

Given an array arr[] that contain the lengths of n sides that may or may not form a polygon. The task is to determine whether… Read More »

Given the length of the side of a square a, the task is to find the area of the shaded region formed by the intersection… Read More »

Given an array arr[] of size n, The task is to replace every element of the array by the sum of next two consecutive elements… Read More »

Given a string str, the task is to print the last character of each word in the string. Examples: Input: str = “Geeks for Geeks”… Read More »

Given the other two sides of a right angled triangle, the task is to find it’s hypotenuse. Examples: Input: side1 = 3, side2 = 4… Read More »

You are given a time T in 24-hour format (hh:mm) and a positive integer K, you have to tell the time after K minutes in… Read More »

A person hosts a party and invites N guests to it. However, each guest has a condition, that each guest ‘Gi’ only stays at the… Read More »

Given here is a right circular cone of radius r and perpendicular height h, which is inscribed in a cube which in turn is inscribed… Read More »

Given a string of alphanumeric characters, the task is to check whether the average character of the string is present or not. Average character refers… Read More »

Given the Selling price i.e ‘SP’ of the two items each. One item is sold at ‘P%’ Profit and other at ‘P%’ Loss. The task… Read More »

This article is aimed at giving a recursive implementation for pattern printing. Simple triangle pattern: C++ filter_none edit close play_arrow link brightness_4 code // C++… Read More »

Given a number N. Find the number of ways to divide a number into four parts(a, b, c, d) such that a = c and… Read More »

Given a generic digital clock, having h number of hours and m number of minutes, the task is to find how many times the clock… Read More »