阅读程序写出运行结果8

来源:互联网 发布:js半圆形仪表盘代码 编辑:程序博客网 时间:2024/05/16 14:16

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication8
{
    class Program
    {
        static void Main(string[] args)
        {
            int myInteger;
            string myString;
            myInteger = (int)2.5;
            myString="\'myInteger\'is";
            Console.WriteLine("{0}:{1}", myString, myInteger);
            Console.ReadKey();
        }
    }
}

说明:运行结果为'myInteger' is:2
0 0