Q&A Discussions
why is it not running?
import java.util.Scanner;
public class Myclass{
public static void main(String [] args){
Scanner in = new Scanner(System.in);
String a;
int b;
System.out.println("enter a word");
a = in.nextLine();
System.out.println("enter repetition")
b = in.nextInt();
for ( int = 0; x < b; x = x++)
System.out.println(a);
}
}
0 Votes
8 AnswersWhat if I is change by x
-1 Vote
2 AnswersWhy the output for x is 0 ?
0 Votes
2 AnswersHot today
Started learning python
0 Votes
Websites for frontend developers
1 Votes
Discrete mathematics (python)
0 Votes
I need help in programing
0 Votes
C++, c# , graphical interface
1 Votes
How can one build an Ai app
1 Votes