性格测试

int yq=0, ax=0, zh=0;
Console.ForegroundColor = ConsoleColor.Blue;
Console.WriteLine("这是一个性格测试");
Console.WriteLine("请问:当你在河边看到有人落水了,你会怎么办?\nA.不管自己会不会游泳,尽量去救B.不管不顾C.就算自己会游泳,也去喊人");
string a1 = Console.ReadLine();
if (a1=="A")
{
yq++;
ax++;
zh--;
}
if (a1 == "B")
{
yq--;
ax--;

}
if (a1 == "C")
{
yq++;
ax++;
zh++;
}
Console.Clear();
Console.WriteLine("请问:一个陌生人向你求救,带你去一个地方帮他你会?\nA.去B.不去C.帮他找警察");
string a2 = Console.ReadLine();
if (a2 == "A")
{

ax++;
zh--;
}
if (a2 == "B")
{


zh++;
}
if (a2 == "C")
{
yq++;
ax++;
zh--;
}
Console.Clear();
Console.WriteLine("请问:遇到一位学识渊博的老人,但他一直请你帮忙,你会觉得?\nA.帮助老人应该的B.不愿意,但是他比较有威望。C.不去了");
string a3 = Console.ReadLine();
if (a3 == "A")
{
yq++;
ax++;
zh++;
}
if (a3 == "B")
{


zh++;
}
if (a3 == "C")
{
yq++;

}
Console.Clear();
Console.WriteLine("请问:有一天你变成了一个动物,你最想是什么?\nA.老虎B.猴子C.小鸟");
string a4 = Console.ReadLine();
if (a4 == "A")
{
yq++;

zh++;
}
if (a4 == "B")
{
yq++;
ax++;
zh++;
}
if (a4 == "C")
{
yq--;
ax++;

}
Console.Clear();
Console.WriteLine("请问:世界末日来了,你最想做点什么?\nA.去抢劫B.拯救世界C.躲起来");
string a5 = Console.ReadLine();
if (a5 == "A")
{
yq--;
ax--;
zh--;
}
if (a5 == "B")
{
yq++;
ax++;
zh++;
}
if (a5 == "C")
{
yq--;
ax++;
zh++;
}
Console.Clear();
Console.WriteLine("请问:你最喜欢穿什么颜色的衣服?\nA.红色B.白色C.黑色");
string a6 = Console.ReadLine();
if (a6 == "A")
{
yq++;
ax++;
;
}
if (a6 == "B")
{

ax++;

}
if (a6 == "C")
{
yq++;
ax++;

}
Console.Clear();
Console.ForegroundColor = ConsoleColor.Yellow;
Console.WriteLine("结果是");
Console.WriteLine(" 勇气{0}, 爱心 {1} , 智慧{2}",yq,ax,zh);

 

posted @ 2016-04-14 20:31  五月十九  阅读(206)  评论(0编辑  收藏  举报