藜麦小笼包


私信TA

用户名:dotcpp0680909

访问量:477

签 名:

刁常潇

等  级
排  名 585
经  验 4246
参赛次数 0
文章发表 51
年  龄 18
在职情况 学生
学  校 山东管理学院
专  业 软件工程

  自我简介:

一名喜欢走捷径的程序猿

TA的其他文章

参考代码:

import java.util.Scanner;
public class Main
{
    public static void main(String args[])
    {
        Scanner ss=new Scanner(System.in);
        char c=ss.next().charAt(0);
        int a=ss.nextInt();
        float b=ss.nextFloat();
        double d=ss.nextDouble();
        System.out.printf("%c ",c);
        System.out.printf("%4d ",a);
        System.out.printf("%.2f ",b);
        System.out.printf("%.12f",d);
    }
}


 

0.0分

0 人评分

  评论区

  • «
  • »