给你代码:
import java.util.Scanner;
public class Test
{
public static void main(String[] args)
{
Scanner in=new Scanner(System.in);
int a;
do
{
System.out.print("请输入一个二位数:");
a=in.nextInt();
}while(a>=100 || a<10);
int b=a*a;
int c=b%100;
String s=(a==c?"yes":"no");
System.out.println(a+"\t"+s+"\t"+a+"*"+a+"="+b);
}
}
简单不过分太少不想做