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
helloOutput
The first line contains the two inputted strings separated by a \.
The second line contains a string result.
hello\hello
EqualDigit 9You 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
1Output
The first line contains all the three inputted integers.
The second line contains a string which is the result.
3·2·1
Yesby 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.23Output
A line containing the result with two decimal places.
2.80by CodeChum Admin
Now this one's a tad bit tricky, but you can definitely do it!
Instructions:
Instructions
Input
A line containing five integers separated by a space.
1·2·3·4·5Output
A line containing an integer.
4084101Write a program that asks the user for an integer greater than 0 and then use a for-loop to
calculate the factorial of that positive integer.
Modify your program so that the output looks like the following:
Example: 5! = 5 x 4 x 3 x 2 x 1 = 120
Create a for-loop that loops from 0 up to and including 20. On each iteration, output a '*' (an asterisk) if the value of the counter variable is divisible by 2, a '@' if divisible by 3, and a '$' if divisible by 4. In all other cases, output a '!'. Each symbol should be printed on a different line.
Write a program that asks the user for an integer greater than 0 and then use a for-loop to
calculate the factorial of that positive integer.
Modify your program so that the output looks like the following:
Example: 5! = 5 x 4 x 3 x 2 x 1 = 120
Create a for-loop that loops from 0 up to and including 20. On each iteration, output a '*' (an asterisk) if the value of the counter variable is divisible by 2, a '@' if divisible by 3, and a '$' if divisible by 4. In all other cases, output a '!'. Each symbol should be printed on a different line.
Create a library management system with full source code.