股票利息

股票利息

Scanner sc  = new Scanner(System.in);
		String s=null;
		while(sc.hasNextLine()){
			s = sc.nextLine();
			String [] s1 = s.split(",");
			int result =0;
			int length = s1.length;
			for(int i=0;iresult){
							result = b-a;
						}
				}
			}
			System.out.println(result);
		}


你可能感兴趣的:(编程题)