【正文】
} }}11。 i++) p = p + a[i]。 } for (i = 0。 i++) if (max a[i]) { max = a[i]。 for (i = 0。 i++) ({0} , a[i])。 for (i = 0。 max = a[0]。namespace ConsoleApplication1{ class Program { static void Main(string[] args) { int i, max, max_i, p=0。要求用控制臺(tái)應(yīng)用程序編寫。 } (sum={0}, sum)。 i++) { if (i % 2 == 1) continue。 for (i = 1。using System。 (n的階乘:{0}, sum)。 i = n。 n = (())。 long sum = 1,n。using System。} (排序由小到大為:{0},{1},{2},a,b,c)。b=c。c=t。} if(ac) {t=a。a=b。 c = (())。 b = (())。 a = (())。class jdz{ static void Main() { double a, b, c,t。 } }} 輸入三個(gè)實(shí)數(shù),按代數(shù)值由小到大的次序輸出這三個(gè)數(shù)。 if (b a) (由小到大排序:{0},{1},a,b)。 (請(qǐng)輸入第二個(gè)實(shí)數(shù):)。 (請(qǐng)輸入第一個(gè)實(shí)數(shù):)。 } }}方法二:using System。 b = c。 if (b a) { c = a。 (請(qǐng)輸入第二個(gè)實(shí)數(shù):)。 (請(qǐng)輸入第一個(gè)實(shí)數(shù):)。using System。 ()。 t = (h, z)。 z = (())。 y = (())。 x = (())。class jdz{ static void Main() { double x, y, z, h, t。 ()。 else t = z。 else h = y。 z = (())。 y = (())。 x = (())。class jdz{