It takes 4 hours to drive a distance of 150 km in car.create a program to calculate the average speed in km/h
To print 3 digit number and peint the digit of the number in reverse order
write a programm to print hard if any carry in addition of two given numbers otherwise print easy.
to input a number and print all numbers from 30 to 60 that is divisible by the input number
by CodeChum Admin
We've been dealing with integers too much, it's time for decimals to shine!
Instructions:
Input
A line containing five decimal numbers separated by a space.
1.1·1.2·1.3·1.4·1.1
Output
The first line contains all the inputted decimal numbers separated by a space.
The second line contains a string which is the result.
1.1·1.2·1.3·1.4·1.1
Yes
by CodeChum Admin
Well, that's odd, or is it? It's your job to find out!
Instructions:
Input
A line containing an integer
5
Output
The first line contains the inputted integer.
The second line contains a string which is the result.
5
Odd
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:
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:
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
It's time to find out if something is true or false. Let's test your capabilities by creating a program that checks if two integers are equal!
Instructions:
Input
A line containing two integers separated by a space.
5·5
Output
The first line contains the two integers input.
The second line contains a string which is the result.
5·5
Equal
The Richest Person
You are given a N entries denoting incomes of people.Same person can have more than one income entry.Write a Program to print person's name and index of the first income entry of the person with highest total income.In case of tie in total income, choose the lexicographically smallest name.
Note:
Name will contain only alphabets and spaces.
Names are case insensitive (i,e Ravi and ravi are same).
Ignore spaces in the name while comparing (i,e Ravi Kishore and RaviKishore are same).
Input
The first line contains an integer N.
Each of next N lines contains the name and income entry of a person.
Sample input1
4
John Cena 1000
John 2000
Jack 4000
Tom 4000
sample output1
Jack 2
]