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
How do we code calculator
1 Votes
How to add comment in python?
0 Votes
Engineer Cloud
0 Votes
Lua?
1 Votes
Pressure and tension
1 Votes