云大JAVA实验2Lab#2[陆歌浩].docVIP

  • 5
  • 0
  • 约2.25千字
  • 约 3页
  • 2017-05-08 发布于四川
  • 举报
云大JAVA实验2Lab#2[陆歌浩]

云南大学软件学院 实验报告 : 序号: 姓名: 成绩: 实验2 练习Java基本编程结构 一、实验目的 练习Java基本编程结构,包括注释、数据类型、变量、赋值、运算符号。 二、实验内容 Program 1 Write Java program called AverageNumbers.java to determine the average of several numbers. Set the following five integer variables: int1 = 5 int2 = 7 int3 = 4 int4 = 25 int5 = 13 Calculate and display the average of these numbers and the square root of average. 程序代码: public class FarheheitToCentigrade { public static void main (String[] args) { double tempFarenheit = 98.6; double Centigrade = (tempFarenheit-32)*5/9; System.out.println(98.6华摄

文档评论(0)

1亿VIP精品文档

相关文档