Java

Java

PythonF

Next Prime Number

A number N is passed as the input. The program must print the next immediate primenumber.Input Format:The first line will contain N.Output…
JavaF

Winner of a Card Game

Arun, Balaji, and Chandra are playing a card game. The points collected at the end of the game is given as input. The program must print the…
JavaF

First Repeating Character

A string S is passed as the input. S has at least one repeating character. The program must print the first repeating character C. Input…
JavaF

Average Speed

A single line L with a set of space separated values indicating distance travelled and time taken is passed as the input. The program must…