Java 代码
import java.util.Scanner;
public class Main
{
public static void main(String[] args)
{
Scanner cin = new Scanner(System.in);
for (int i = 0; i < 100; i ++)
{
double n = cin.nextDouble();
if (n <= 10)
System.out.println ("A[" + i + "] = " + String.format("%.1f", n));
}
}
}