精品偷拍一区二区三区,亚洲精品永久 码,亚洲综合日韩精品欧美国产,亚洲国产日韩a在线亚洲

  • <center id="usuqs"></center>
  • 
    
  • C#輸入一組非0整數(shù)(以0作為輸入結(jié)束標(biāo)志)到一維數(shù)組中,求出這一組數(shù)的平均值,統(tǒng)計出正數(shù)和負(fù)數(shù)的個數(shù).

    C#輸入一組非0整數(shù)(以0作為輸入結(jié)束標(biāo)志)到一維數(shù)組中,求出這一組數(shù)的平均值,統(tǒng)計出正數(shù)和負(fù)數(shù)的個數(shù).
    如,輸入4,5,6,0,則輸出 5
    是C#的問題,求解
    其他人氣:378 ℃時間:2019-08-17 16:30:10
    優(yōu)質(zhì)解答
    using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace baidu_shurutongji{    class Program    ...int n;int sum = 0;int[] count=new int[1000];int pos = 0;int neg=0;Console.WriteLine("請輸入(以0作為輸入結(jié)束標(biāo)志)");n = int.Parse(Console .ReadLine ());for (int i = 0; n != 0;i++ ){count[i] = n;sum = sum + n;if (n > 0) pos++;
    我來回答
    類似推薦
    請使用1024x768 IE6.0或更高版本瀏覽器瀏覽本站點,以保證最佳閱讀效果。本頁提供作業(yè)小助手,一起搜作業(yè)以及作業(yè)好幫手最新版!
    版權(quán)所有 CopyRight © 2012-2024 作業(yè)小助手 All Rights Reserved. 手機(jī)版