高级计算机语言 便于人编写,阅读交流,维护。 机器语言是计算机能直接解读、运行的。

编译器将汇编或高级计算机语言源程序 (Source program)作为输入,翻译成目标语言(Target language)机器代码的等价程序。

源代码一般为高级语言 (High-level language),

如Pascal、C 、C++、Java、汉语编程等或汇编语言 ,而目标则是机器语言的目标代码(Object code),有时也称作机器代码(Machine code)。

 

 1 package Com.Table;
 2 import java.util.Scanner;
 3 public class FourTable {
 4     //输入语句的应用
 5        public static void main(String [] args)
 6        {
 7            System.out.println("学号:");
 8            Scanner scanner = new Scanner(System.in);
 9            int Student = scanner.nextInt();
10            int StudentYear = Student / 10000;
11            int StudentTime = (Student / 100) % StudentYear;
12            int StudentId = Student % (Student / 100);
13            System.out.println("学生学号:" + Student);
14            System.out.println("学生入学年份:" + StudentYear + "年");
15            System.out.println("学生期数:" + StudentTime + "期");
16            System.out.println("学生序号:" + StudentId + "号");
17        }
18 }

 

相关文章:

  • 2021-07-14
  • 2022-12-23
  • 2021-09-06
  • 2021-12-19
  • 2021-09-07
  • 2021-07-22
  • 2021-11-28
猜你喜欢
  • 2022-12-23
  • 2021-08-03
  • 2021-06-22
  • 2022-12-23
  • 2021-12-16
  • 2021-06-08
  • 2021-06-16
相关资源
相似解决方案