InputMismatchException
Submit solution
Points:
10
Time limit:
5.0s
Memory limit:
256M
Author:
Problem types
Allowed languages
C#, Go, Java, Python
Escriu un programa que, llegit un nombre enter \(N\), el mostri tal qual per pantalla.
Has de tenir en compte que, si \(N\) no és un nombre enter, cal mostrar per pantalla el text Cal introduïr un nombre enter!
.
Input Format
Primera línia:
- \(N\): un nombre enter.
Constraints
N/A
Output Format
S'imprimirà un nombre enter o el text Cal introduïr un nombre enter!
.
Test Case 1
Input
3
Output
3
Test Case 2
Input
-1
Output
-1
Test Case 3
Input
4.12
Output
Cal introduïr un nombre enter!
Test Case 4
Input
q
Output
Cal introduïr un nombre enter!
CC BY-NC-SA 4.0