Computer Science, asked by Anonymous, 10 months ago

Predict the output :
String str="Weather is cold today";
int wCount = 0, ICount = 0;
int len = str.length();
for (int i = 0; i < len; i++) {
char ch = str.charAt(i);
if (ch =='')
wCount++;
else
ICount++;
}
wCount++;
System.out.print("No. of words = " + wCount + " and
");
System.out.println("No. of letters = " + Count);​

Answers

Answered by meenaaman590
0

Answer:

please follow me I will give you answer later

Answered by Anonymous
4

Answer:

do u want to say something?......

Similar questions