0
I need some help with these
https://www.sololearn.com/coach/595?ref=app why is not working? the output it's OK but fails... it work but didn't give me my XP
7 Answers
0
Franco MartĂn Pueyo Meyer we cannot see your code from the link provided. You'll need to paste your code here or in code playground and link to it.
0
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner read = new Scanner(System.in);
int firstBadGuy = read.nextInt();
int secondBadGuy = read.nextInt();
//tu cĂłdigo va aquĂ
for (int x=1; x<=7; x++){
if(firstBadGuy==x){
System.out.println("Bad Guy");
}else if(secondBadGuy == x){
System.out.println("Bad Guy");
}else{
System.out.println("Good Guy");
}
}
}
}
0
thanks
0
What's the expected output?
0
same as the result..... that's the problem
0
All tests passing? If not, can you paste the exercise here?
0
all test has the same result than the expected output... but it's wrong