Write a program in java to get an output
##
##
##
Answers
Answered by
1
what question do u mean
Answered by
1
Explanation:
import java.io.*;
class Demo
{
void display()
{
Scanner sc=new Scanner(System.in);
Sopln("##");
Sopln("##");
Sopln("##");
}
}
o/p==##
##
##
by loop
after function
int i=0,j=1;
for(i=0;i<=2;i++)
{
for(j=1;j<=2;j++)
{
Sop("#");
}
Sopln();
}
o/p
##
##
##
Similar questions
Computer Science,
8 months ago
Science,
8 months ago
Social Sciences,
8 months ago
Geography,
1 year ago
Hindi,
1 year ago