hlo
write a program (java)
Attachments:
Answers
Answered by
0
hey mate ur answer is
⬇⬇⬇⬇⬇⬇
import java.util.Scanner;
public class NumToken
{
public static void main(String arg())
{
Scanner in=new Scanner (System. in);
System.out.println("enter a line ending with space");
while (true)
{
if(in.hasNextInt())
System.out.println(in.nextInt()+" ");
if(in.next().equals("."))
break;
}
}
}
⬇⬇⬇⬇⬇⬇
import java.util.Scanner;
public class NumToken
{
public static void main(String arg())
{
Scanner in=new Scanner (System. in);
System.out.println("enter a line ending with space");
while (true)
{
if(in.hasNextInt())
System.out.println(in.nextInt()+" ");
if(in.next().equals("."))
break;
}
}
}
ronilrocky:
friend bana ha kya
Similar questions