最新回答 / 星舟
using System;using System.Collections.Generic;using System.Text;namespace projAboveAvg{? ? class Program? ? {? ? ? ? static void Main(string[] args)? ? ? ? {? ? ? ? ? ? string[,]arr={{"景珍","90"},{"林慧洋","65"},{"成蓉","88"},{"洪南昌","70"},{"龍玉民","46"},{"單江開(kāi)","8...
2024-02-01
最新回答 / 精慕門9392155
給x賦值為0x++為x+1算出來(lái)為1x+為x+1 前面x已經(jīng)為1了 所以這里是2X%就是x除于2的余數(shù)就是2除于2的余數(shù)是0打印出來(lái)是0
2023-12-13
最新回答 / qq_半城浮華_0
using System;using System.Collections.Generic;using System.Text;namespace projAboveAvg{? ? class Program? ? {? ? ? ? static void Main(string[] args)? ? ? ? {? ? ? ? ? ? int avg = 0;? ? ? ? ? ? int sum = 0;? ? ? ? ? ? int[] scores=new int[8]{90,65,88,70,46...
2023-07-23
最新回答 / 慕慕8394392
? ? ? ? ? ? string[] name=new string[8]? ? ? ? ? ? {"吳松","錢東宇","伏晨","陳陸","周蕊","林日鵬","何昆","關(guān)欣"};?? ? ? ? ? ? int[] score =new int[8]{99,90,98,56,60,91,93,85};? ? ? ? ? ? int max = score[0];? ? ? ? ? ? int j = 0;? ? ? ? ? ? for(int i=0;i<score.Length;i++...
2023-06-07
最贊回答 / qq_慕雪4435505
using System;using System.Collections.Generic;using System.Text;namespace Test{? ? class Program? ? {? ? ? ? static void Main(string[] args)? ? ? ? {? ? ? ? ? ? //請(qǐng)完善代碼? ? ? ? ? ? for(int i=0;i<7;i++)? ? ? ? ? ? {? ? ? ? ? ? ? ? for(int j=0;j<7;j++)...
2023-06-07
最新回答 / wulitan
語(yǔ)句`Console.write((double)3)`中的`(double)`表示將整型3強(qiáng)制轉(zhuǎn)換成雙精度浮點(diǎn)型,所以實(shí)際上3已經(jīng)被轉(zhuǎn)換成了3.0。但是`Console.write()`默認(rèn)輸出時(shí)不會(huì)顯示小數(shù)點(diǎn)及后面的0,因此輸出的是3而非3.0。若要輸出3.0,可以使用`Console.WriteLine()`方法并指定輸出格式,例如:```Console.WriteLine("{0:F1}", (double)3);```其中的`{0:F1}`表示格式化輸出第一個(gè)參數(shù)(即強(qiáng)制轉(zhuǎn)換后的3),保留一位小...
2023-05-16