write a java program to give this pattern as output
C
CO
COM
COMP
COMPU
COMPUT
COMPUTE
COMPUTER
Answers
Answered by
1
class Pattern
{
public static void main(Stringargs[])
{
String n='COMPUTER';
int i,l;
l=n.length();
char ch;
for(i=0;i<l;i++)
{
cha=n.charAt(I);
Syestem.out.println(cha);
}
}
}
Hope you like it...
Mark as brainliest....
{
public static void main(Stringargs[])
{
String n='COMPUTER';
int i,l;
l=n.length();
char ch;
for(i=0;i<l;i++)
{
cha=n.charAt(I);
Syestem.out.println(cha);
}
}
}
Hope you like it...
Mark as brainliest....
Raviraj95:
sorry the report button was pressed by mistake. Nevermind
Similar questions