Sir may you tell me what i make mistake here?
import java.util.;
class temp2
{
public static void main(String[] args)
{
int totalrows = 7;
int totalclm = 7;
for(int row = 1 ; row<=totalrows ; row++)
{
for(int clm = 1 ; clm<=totalclm ; clm++)
{
if(row==clm)
{
System.out.print("");
}
else
{
System.out.print(" ");
}
}
System.out.println();
}
}
}
you need print new line after second for loop