img



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];
    }
}

����
img

posted on 2023-05-16 19:15  许七安gyg  阅读(3)  评论(0编辑  收藏  举报
$(document).ready(function() { // 禁止右键 $(document).bind("contextmenu", function(){return false;}); // 禁止选择 $(document).bind("selectstart", function(){return false;}); // 禁止Ctrl+C 和Ctrl+A $(document).keydown(function(event) { if ((event.ctrlKey&&event.which==67) || (event.ctrlKey&&event.which==86)) { //alert("对不起,版权所有,禁止复制"); return false; } }); });