c#语句实例(排大小)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
Console.Write( "女:你有房子么" ); string yes = Console.ReadLine(); if (yes == "有" ) { Console.WriteLine( "我们结婚吧" ); } else if (yes == "没有" ) { Console.WriteLine( "你有钱么?" ); } yes = Console.ReadLine(); if (yes == "有" ) { Console.WriteLine( "先买房再结婚" ); } else if (yes == "没有" ) { Console.WriteLine( "你有能力吗?" ); } yes = Console.ReadLine(); if (yes == "有" ) { Console.WriteLine( "先赚钱再买房再结婚" ); } else { Console.WriteLine( "拜拜" ); } |