People, I do not know if this is the question for doubt I have, but come on ... I want to get the following output: "V V V V V!".
First I created a simple algorithm just to simulate the output, no exclamation point at the end of the output :
public static void main(String[] args){
int N, i;
Scanner ler = new Scanner(System.in);
N = ler.nextInt();
for(i = 0; i < N; i++){
System.out.print("V ");
}
}
Can anyone help me and give me a hint on how to make that exclamation mark at the end of the output?
Right away, thank you!