package org.example;
import java.sql.SQLOutput;
import java.util.*;
// ������ Shift ���洦�������Ի������� `show whitespaces`��
// Ȼ�� Enter �������ڣ��������ڴ����п����ո��ַ���
public class Main {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int money;
while(true)
{
System.out.println("������һ����");
money=sc.nextInt();
if(money>=0&&money<=9999999){
break;
}
else{
System.out.println("��������Ч���������룺");
}
}
String moneyStr="";
while(true)
{
int ge=money%10;
String capatialmoner=getStr(ge);
moneyStr=capatialmoner+moneyStr;
money/=10;
if(money==0) break;
}
System.out.println(moneyStr);
int count=7-moneyStr.length();
for (int i = 0; i < count; i++) {
moneyStr="��"+moneyStr;
}
System.out.println(moneyStr);
String[] arr={"��","ʮ","��","ǧ","��","ʮ","Ԫ"};
String result="";
for (int i = 0; i < moneyStr.length(); i++) {
result=result+moneyStr.charAt(i)+arr[i];
}
System.out.println(result);
}
private static String getStr(int num)
{
String[] arr={"��","һ","��","��","��","��","��","��","��"};
return arr[num];
}
}
����