91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 20KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2021-06-15
  • 語言: 其他
  • 標簽: 0-9??

資源簡介

編寫一個程序接受用戶輸入的字符。如果輸入的字符是0-9數字中的一個,則顯示“您輸入了一個數字”,否則顯示“這不是一個數字”。 提示:建一個數字數組,存儲0-9;用循環把輸入字符和這個數組比較,檢查字符是否在數組里。

資源截圖

代碼片段和文件信息

using?System;
using?System.Collections.Generic;
using?System.Text;

namespace?ConsoleApplication1
{
????class?Program
????{
????????static?void?Main(string[]?args)
????????{
????????????int[]?a?=?new?int[10]?{?1?2?3?4?5?6?7?8?9?0?};
????????????string?b;
????????????b?=?Console.ReadLine();
????????????for?(int?i?=?0;?i?????????????{
????????????????if?(b?==?a[i].ToString())
????????????????{
????????????????????Console.WriteLine(“這是一個0---9的整數!“);
????????????????????break;
????????????????}
????????????????if?(i?==?9)
????????????????{
????????????????????Console.WriteLine(“這不是一個0---9的整數!“);
????????????????}
????????????}
????????}
????}
}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件???????5120??2013-12-29?04:01??S2-1\S2-1\bin\Debug\S2-1.exe

?????文件??????13824??2013-12-29?04:01??S2-1\S2-1\bin\Debug\S2-1.pdb

?????文件??????11600??2013-12-29?12:21??S2-1\S2-1\bin\Debug\S2-1.vshost.exe

?????文件????????490??2009-08-31?00:40??S2-1\S2-1\bin\Debug\S2-1.vshost.exe.manifest

?????文件???????5786??2013-12-29?12:21??S2-1\S2-1\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache

?????文件????????460??2013-12-29?12:21??S2-1\S2-1\obj\x86\Debug\S2-1.csproj.FileListAbsolute.txt

?????文件???????5120??2013-12-29?04:01??S2-1\S2-1\obj\x86\Debug\S2-1.exe

?????文件??????13824??2013-12-29?04:01??S2-1\S2-1\obj\x86\Debug\S2-1.pdb

?????文件????????730??2013-12-29?04:01??S2-1\S2-1\Program.cs

?????文件???????1340??2013-12-29?03:35??S2-1\S2-1\Properties\AssemblyInfo.cs

?????文件???????2429??2013-12-29?03:35??S2-1\S2-1\S2-1.csproj

?????文件????????854??2013-12-29?03:35??S2-1\S2-1.sln

????..A..H.?????15360??2013-12-29?12:22??S2-1\S2-1.suo

?????目錄??????????0??2013-12-29?03:35??S2-1\S2-1\obj\x86\Debug\TempPE

?????目錄??????????0??2013-12-29?04:01??S2-1\S2-1\obj\x86\Debug

?????目錄??????????0??2013-12-29?04:03??S2-1\S2-1\bin\Debug

?????目錄??????????0??2013-12-29?03:35??S2-1\S2-1\obj\x86

?????目錄??????????0??2013-12-29?03:35??S2-1\S2-1\bin

?????目錄??????????0??2013-12-29?03:35??S2-1\S2-1\obj

?????目錄??????????0??2013-12-29?03:35??S2-1\S2-1\Properties

?????目錄??????????0??2013-12-29?03:35??S2-1\S2-1

?????目錄??????????0??2013-12-29?03:35??S2-1

-----------?---------??----------?-----??----

????????????????76937????????????????????22


評論

共有 條評論