《Windows编程(C#)》考试复习资料.docVIP

  • 253
  • 0
  • 约2.61万字
  • 约 31页
  • 2017-09-17 发布于安徽
  • 举报
一、单项选择题int year = 2046; if (year % 2 == 0) { Console.WriteLine(进入了if); } else if (year % 3 == 0) { Console.WriteLine(进入了else if); } else { Console.WriteLine(进入了else); } Console.ReadLine(); 3.下面程序的输出结果是 ( ) A)1 B)2 C)4.5 D)4 static void Main(string[] args) { int a=5,b =2; float x=4.5f, y=3.0f, u; u=a/3+b*x/y+1/2; Console .WriteLine ({0},u); Console.ReadLine(); } 4.运行下面这段代码的结果为( ) A.去上课 B.去上课,

文档评论(0)

1亿VIP精品文档

相关文档