Notification
No New notification
Learn to code with PrepInsta
Check PrepInsta Coding Blogs, Core CS, DSA etc
Never Miss an OffCampus Update
Get OffCampus Updates on Social Media from PrepInsta
No New notification
Check PrepInsta Coding Blogs, Core CS, DSA etc
Get OffCampus Updates on Social Media from PrepInsta
Get Hiring Updates right in your inbox from PrepInsta
m=str(input())
n=m.split()
For i in n:
Print(i)
Java:
import java.util.Scanner;
public class Main
{
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
String big = scan.nextLine();
String[] splittting = big.split(“\\s”);
for(String g : splittting){
System.out.println(g);
}
}
}
Hy
Hello prepster!
How can we help you?