(一)改错题 输出三角形的面积和周长,输入三角形的三条边a.b.c,如果能构成一个三角形,输出面积area和周长perimeter(保留2位小数):否则,输出"These sides do not correspond to a valid triangle". 输入输出样例1: Enter 3 sides of the triangle: 5 5 3 area = 7.15: perimeter = 13.00 输入输出样例2: Enter 3 sides of the triang
Deadline: 2017-11-5 22:00 一.学习要点 掌握switch语句 掌握字符常量.字符串常量和字符变量 掌握字符型数据的输入输出 二.实验内容 完成PTA中选择结构(2)的所有题目 三.作业要求 发布一篇随笔,主要包括以下几部分的内容: (一)改错题 输出三角形的面积和周长,输入三角形的三条边a.b.c,如果能构成一个三角形,输出面积area和周长perimeter(保留2位小数):否则,输出"These sides do not correspond to a valid
(一)改错题 输出三角形的面积和周长,输入三角形的三条边a.b.c,如果能构成一个三角形,输出面积area和周长perimeter(保留2位小数):否则,输出"These sides do not correspond to a valid triangle". 输入输出样例1: Enter 3 sides of the triangle: 5 5 3 area = 7.15: perimeter = 13.00 输入输出样例2: Enter 3 sides of the triang
class Bank { //Dictionary<long,Account> dictionary=new Dictionary<long,Account>(); DataTable table = new DataTable();//存储,储蓄账户集合 DataTable table1 = new DataTable();//存储信用账户集合 SavingAccount account = new SavingAccount();//储蓄账户类的实例化 CreditAccoun
--------- 流程控制 ------ 流程图 ------ 基本的 if 选择结构 import java.util.Scanner; public class GetPrize { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.print("输入张浩的Java成绩: "); //提示要输入Java成绩 int score
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ATM.Day02 { class Bank { public int index; ]; public Account account = new Account(); public CreditAccount credit = new Cred
class Card { private string name; public string Name { get { return name; } set { name = value; } } private string age; public string Age { get { return age; } set { age = value; } } private string sex; public string Sex { get { return sex; } set { s
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace day1 { class PersonCard { private string name; public string Name //姓名 { get { return name; } set { name = value; } } privat
.冒泡排序 Console.WriteLine("对集合里的数进行排序,请输入第一个数:"); int a = int.Parse(Console.ReadLine()); Console.WriteLine("对集合里的数进行排序,请输入第二个数:"); int b = int.Parse(Console.ReadLine()); Console.WriteLine("对集合里的数进行排序,请输入第三个数:"); int c = int.Par