亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

C#開發輕松入門

難度入門
時長 4小時43分
學習人數
綜合評分9.40
833人評價 查看評價
9.5 內容實用
9.5 簡潔易懂
9.2 邏輯清晰
for (int y = 1; y <= 7; y++)
{
for (int x = 1; x <= 7; x++)
{
if(x <= y){
Console.Write(x);
}

}
Console.WriteLine();//換行
}
for (int x = 1; x < 10; x++)
{
if(x==3 || x==8){
continue;
}
//請添加代碼,過濾3和8
Console.Write(x);
}
for (int i = 1; i <= 6; i++) //請填寫for循環結構
{
Console.WriteLine("Yeah!");
}
{
for (int x=1; x<=12; x++ )//請填寫代碼
{
Console.WriteLine(x+" ");
}
}
{
int x;//循環計數變量
//行① 請填寫計數變量的初始化語句
x = 1;
while ( x<6 )//行② 請填寫循環條件
{
Console.Write("加油!");
x++;//行③ 請填寫計數變量的自加語句
}
}
{
int y = 5;
while (y>0)//請輸入
{
Console.Write(y+" ");
y--;
//請輸入
}
}
{
case "局長": Console.Write("發雙黃月餅"); break;
case "處長": Console.Write("發蛋黃月餅"); break;
case "科長": Console.Write("發棗泥月餅"); break;
default : Console.Write("發五仁月餅"); break;
}
int max = score[0];
int index = 0;

for(int i=1;i<score.Length;i++){
if(score[i]>max){
max = score[i];
index = i;
}
}
Console.Write("分數最高的是{0},分數是{1}",name[index],max);
double price = 4388;//手機的售價
double salary = 4978.67;//本月實發工資
if(price<=salary)//請在這里補充條件判斷
{
Console.WriteLine('這個月工資購買手機!');
}else{
Console.WriteLine('這個月工資不購買手機!');
}
double x, y;
x = y = 2;//從右向左賦值,x、y的值都是2
x /= 0.5;
y -= 2;
Console.WriteLine(x-y);
string c;
c=today;
today=tomorrow;
tomorrow=c;
int[] score = new int[]{89,90,98,56,60,91,93,85};
int k=0;
for(int i=1;i<score.Length;i++)
{
if(score[k]<=score[i])
k=i;
}
Console.Write(,score[k]);
可能有不一樣的吧。
數學取模原來是取余數絕對值啊
課程須知
本課程是C#基礎課程,熱烈歡迎各位小伙伴拍磚吐槽??!
老師告訴你能學到什么?
1、C#的基本概念 2、Visual Studio的使用技巧 3、C#的語法和程序邏輯

微信掃碼,參與3人拼團

微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號

友情提示:

您好,此課程屬于遷移課程,您已購買該課程,無需重復購買,感謝您對慕課網的支持!

本次提問將花費2個積分

你的積分不足,無法發表

為什么扣積分?

本次提問將花費2個積分

繼續發表請點擊 "確定"

為什么扣積分?

舉報

0/150
提交
取消