要求: 代码: package com.jianglai.atm; import java.util.Scanner; public class ATM { public static void main(String[] args) { Scanner in = new Scanner(System.in); /** * 1. 判断用户密码是否正确 */ int pwd = 111111;//用户密码 int i = 1; for (i = 1; i < 4; i++) { System.ou…
1,for 循环,语法 举例: for i in range(1, 5, 2): # 0,1,2,3,4 print(i) for a in range(5):# --(0,5,1) 0,1,2,3,4 print(a) 2,九九乘法表: for i in range(1,10): for k in range(1,i+1): a = "{}*{}={}\t".format(k,i,i*k) print(a,end="") print() 或者: i = 1 whi…