第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

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

C#開發(fā)輕松入門

難度入門
時長 4小時43分
學(xué)習(xí)人數(shù)
綜合評分9.40
833人評價 查看評價
9.5 內(nèi)容實用
9.5 簡潔易懂
9.2 邏輯清晰
  • 代碼供參考:

    using?System;
    using?System.Collections.Generic;
    using?System.Text;
    
    namespace?Test
    {
    ????class?Program
    ????{
    ????????static?void?Main(string[]?args)
    ????????{
    ????????????int?y?=?5;
    ????????????while?(y?>?0)//請輸入
    ????????????{
    ????????????????Console.Write(y+"?");
    ????????????????y--;//請輸入
    ????????????}
    ????????}
    ????}
    }
    查看全部
  • using?System;
    using?System.Collections.Generic;
    using?System.Text;
    
    namespace?Test
    {
    ????class?Program
    ????{
    ????????static?void?Main(string[]?args)
    ????????{
    ????????????int?x=1;
    ????????????bool?a?=?++x?*?x?>?3;//true?x=1?運行后x=2,2?*?2?=?4?>3
    ????????????bool?b?=?x>1?;//請賦值
    ????????????Console.WriteLine(a==b);
    ????????}
    ????}
    }
    查看全部
  • using System;

    using System.Collections.Generic;

    using System.Text;


    namespace Test

    {

    ? ? class Program

    ? ? {

    ? ? ? ? static void Main(string[] args)

    ? ? ? ? {

    ? ? ? ? ? ? double x, y;

    ? ? ? ? ? ? x = y = 2;//從右向左賦值,x、y的值都是2

    ? ? ? ? ? ? x /= 0.5;//x=x/0.5 x=4

    ? ? ? ? ? ? y = 0;

    ? ? ? ? ? ? Console.WriteLine(x-y);

    ? ? ? ? }

    ? ? }

    }


    查看全部
  • 雙精度浮點型?double?,存儲小數(shù),例如:

    查看全部
  • 整數(shù)類型?int?,存儲整數(shù),例如

    查看全部
  • 字符串類型?string?,存儲用“”(雙引號)括起來的一串字符,例如:

    查看全部
  • 字符類型?char?,存儲用 '' (單引號)括起來的一個字符,例如:

    查看全部
  • using?System;
    using?System.Collections.Generic;
    using?System.Text;
    
    namespace?Test
    {
    ????class?Program
    ????{
    ????????static?void?Main(string[]?args)
    ????????{
    ????????????double?x?=?3.5;
    ????????????int?y?=?3;
    ????????????Console.WriteLine((double)x>y);
    ????????}
    ????}
    }
    查看全部
  • 需要申明變量 string temp;

    查看全部
    0 采集 收起 來源:編程練習(xí)

    2023-04-22

  • double 型強制轉(zhuǎn)換為int型將失去小數(shù)部分,比如(int)2.8,我們得到的將是2。
    查看全部
  • 2個條件都是“必須”做到,那就需要同時滿足,適合用邏輯與(&&)連接:

    ||?二者居其一即可

    查看全部
  • ! 取反? ?即“真變假”或“假變真”

    && 一票否決? ?只有當(dāng)&&兩邊的表達式均為?true?時,整個表達式才為?true?;若任意一個表達式為?false?,整個表達式即為?false?。

    ||一票表決? ?只有當(dāng)&&兩邊的表達式均為?true?時,整個表達式才為?true?;若任意一個表達式為?false?,整個表達式即為?false?。

    查看全部
  • 641fce050001321610520780.jpg1111111111
    查看全部
    0 采集 收起 來源:編程練習(xí)

    2023-03-26

  • namespace Test

    {

    ? ? class Program

    ? ? {

    ? ? ? ? static void Main(string[] args)

    ? ? ? ? {

    ? ? ? ? ?????char sex = '男';

    ????????????? int age = 21;

    ????????????? if (sex == '女')

    ??????????????{

    ????????????????????if(age >= 20)

    ????????????????????{

    ????????????????????????Console.WriteLine("達到法定年齡");

    ????????????????????}

    ????????????????????else

    ????????????????????{

    ????????????????????????Console.WriteLine("沒有達到呦");

    ?????????????????????}

    ????????????????}

    ????????????????else

    ????????????????{

    ????????????????????if(age >= 22)

    ????????????????????{

    ????????????????????????Console.WriteLine("達到法定年齡");

    ????????????????????}

    ????????????????????else

    ????????????????????{

    ????????????????????????Console.WriteLine("沒有達到!");

    ????????????????????}

    ????????????????}

    ? ? ? ? }

    ? ? }

    }

    查看全部
  • namespace Test

    {

    ? ? class Program

    ? ? {

    ? ? ? ? static void Main(string[] args)

    ? ? ? ? {

    ? ? ? ? ? ? double x = 13.9, y = 24.4;

    ????????????double sum = x + y ;

    ????????????double avg = sum /2;

    ????????????Console.WriteLine(avg);

    ? ? ? ? }

    ? ? }

    }

    查看全部

舉報

0/150
提交
取消
課程須知
本課程是C#基礎(chǔ)課程,熱烈歡迎各位小伙伴拍磚吐槽??!
老師告訴你能學(xué)到什么?
1、C#的基本概念 2、Visual Studio的使用技巧 3、C#的語法和程序邏輯

微信掃碼,參與3人拼團

微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號

友情提示:

您好,此課程屬于遷移課程,您已購買該課程,無需重復(fù)購買,感謝您對慕課網(wǎng)的支持!