import java.io.*;
class AvgWordSent
{
protected static void main()throws IOException
{
BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
System.out.print("Enter the Sentence: ");
String s=in.readLine();
byte a=0,b=0;
float c=0;
for(byte i=0;i<s.length();i++)
{
if(s.charAt(i)==' ')
a++;
}
String w[]=new String[a+1];
for(byte i=0;i<=a;i++)
w[i]="";
for(byte i=0;i<s.length();i++)
{
if(s.charAt(i)==' ')
{
b++;
continue;
}
w[b]+=s.charAt(i);
}
b++;
for(byte i=0;i<=a;i++)
c+=w[i].length();
System.out.print("Average no. of words= "+(c/b));
}
}
You can't write alphabets in order but you can write letters in order.
i just want to how to write initial alphabets in urdu ? i just want to how to write initial alphabets in urdu ?
hybgg
How to write a program for mouse in microprocessor?
write a c program to display marks,total,average,grade using union
to teach a boy how to read write and learn alphabets
class TestApp { public static void main(String args[]) { char ch; for( ch = 'a' ; ch <= 'z' ; ch++ ) System.out.println(ch); } }
There is no language called Israeli. People speak Hebrew and they write using Hebrew alphabets.
Memorize and or write the coordinates on the sides of the map (alphabets and numbers )
Write your program and if you are having a problem post it here with a description of the problem you are having. What you are asking is for someone to do your homework for you. no i am asking to verify my answer
void to_uppercase (char* str) { if (str == 0) return; while (*str != '\0') { if (*str>='a' && *str<='z') *str-=32; ++str; } }
Writing.Writing is the present participle of write.