ktoś na pewno wie...
Czego tutaj brakuje?
Dyskutowane
Komentarze (5)
- Popularne
- Najnowsze
- Najstarsze
Musisz się zalogować, aby dodać komentarz
Anna
17 grudnia 2019, 21:45
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
String sLiczba=reader.readLine();
int nLiczba=Integer.parseInt(sLiczba);
if(nLiczba==1){
System.out.println("Poniedziałek");
}else if(nLiczba==2){
System.out.println("Wtorek");
}else if(nLiczba==3){
System.out.println("Środa");
}else if(nLiczba==4){
System.out.println("Czwartek");
}else if(nLiczba==5){
System.out.println("Piątek");
}else if(nLiczba==6){
System.out.println("Sobota");
}else if(nLiczba==7){
System.out.println("Niedziela");
}else{
System.out.println("Nie ma takiego dnia tygodnia");
}
}
}
0
Artem Divertitto Senior Android Developer w United Tech
19 grudnia 2019, 10:43
All right. What requirement don't pass?
0
Dawid Rogala
17 grudnia 2019, 15:36
Podrzuć kod i pomyślimy :)
0
Anna
17 grudnia 2019, 21:45
już się poprawiam ;)
0
Anthony Chalk
17 grudnia 2019, 13:14
Możesz załączyć swój kod
+1