Computer Science, asked by shalukanwar, 5 months ago

import java.util.*;
class TestClass{
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int length=0;
int sentence=1;
String s=sc.nextLine();
for(int i=0;i<s.length(); i++) {
if(s.charAt(i)==''X{
sentence++;
}
length++;
}
System.out.println(length);
System.out.println(sentence),
}
}​

Answers

Answered by Anonymous
0

Answer:

Explanation:

ooooooooookkkkkkkkk

Similar questions