by CodeChum Admin
This one is a bit tricky. You're going to have to isolate each digit of the integer to determine which one is the largest, so good luck!
Instructions:
Instructions
Input
A line containing a three-digit integer.
173
Output
A line containing a single-digit integer
7
by CodeChum Admin
You have been cordially invited to partake in Operation: Operation. Your mission, should you choose to accept it, is to take the two numbers and the operator given then perform the operation successfully.
Instructions:
Instructions
Input
The first line contains the first number.
The second line contains the operator.
The third line contains the second number.
5
+
0.70
Output
A line containing a decimal/float containing two decimal places.
5.70
by CodeChum Admin
The first time around we did this was a bit simple. Let's kick it up a notch don't you think?
Instructions:
Instructions
Input
Two lines containing a string on each.
VeryLongText
ShortText
Output
A line containing a string.
First
by CodeChum Admin
Do you believe in doppelgangers? Well they are very much possible with strings! Check if the two given strings are the same or not.
Instructions:
Instructions
Input
Two lines containing a string on each.
hello
hello
Output
The first line contains the two inputted strings separated by a \.
The second line contains a string result.
hello\hello
Equal
by CodeChum Admin
They say that the one in first place is always greater than the one in the second and third place. Are they always right?
Instructions:
Instructions
Input
Three lines containing an integer on each.
3
2
1
Output
The first line contains all the three inputted integers.
The second line contains a string which is the result.
3·2·1
Yes
Replacing Characters of Sentence
You are given a string
S. Write a program to replace each letter of the string with the next letter that comes in the English alphabet.
Note: Ensure that while replacing the letters, uppercase should be replaced with uppercase letters, and lowercase should be replaced with lowercase letters.
Input
The first line of input is a string.
Explanation
In the given example,
Hello World.
If we replace each letter with the letter that comes next in the English alphabet,
H becomes I, e becomes f and so on ... So, the output should be Ifmmp Xpsme.
Sample Input 1
Hello World
Sample Output 1
Ifmmp Xpsme
Sample Input 2
Something is better than Nothing
Sample Output 2
Tpnfuijoh jt cfuufs uibo Opuijoh
Do you believe in doppelgangers? Well they are very much possible with strings! Check if the two given strings are the same or not.
Instructions:
Instructions
Input
Two lines containing a string on each.
hello
hello
Output
The first line contains the two inputted strings separated by a \.
The second line contains a string result.
hello\hello
Equal
Digit 9
You are given
N as input. Write a program to print the pattern of 2*N - 1 rows using an asterisk(*) as shown below.Note: There is a space after each asterisk * character.Input
The first line of input is an integer
N.Explanation
In the given example,
sample input is 4
the output should be like this...
* * * *
* *
* *
* * * *
*
*
* * * *
They say that the one in first place is always greater than the one in the second and third place. Are they always right?
Instructions:
Instructions
Input
Three lines containing an integer on each.
3
2
1
Output
The first line contains all the three inputted integers.
The second line contains a string which is the result.
3·2·1
Yes
by CodeChum Admin
Now that we're done with integers, we're moving on to decimals!
Instructions:
Instructions
Input
A line containing three decimal numbers with two decimal places separated by a space.
1.53·2.25·1.23
Output
A line containing the result with two decimal places.
2.80