如何描述c#程序,包括if else和switch case [英] how to describe the c# program including if else and switch case
问题描述
我必须创建一个可以编写用户所用程序描述的应用程序。该程序可以包括函数原型或定义,swith case,if else,for循环,while while循环和while循环。应用程序阅读程序并编写程序的功能
例如
这是输入程序,应用程序应该读取并描述程序的功能
i have to make a application which can write the description of any program wrtten by the user.the program can include the functions prototype or definition ,swith case,if else,for loop,do while loop and while loop.the application read the program and write the functionality of the program
for example
this is the input program and the application should read and describe the functionality of the program
bool a = true;
if(a=true)
{
console.writeline("a is true");
}
else
{
console.writeline("a is false");
}
输出描述:
程序包含布尔变量数据类型和if else语句.if语句的主体包含一条消息。else的主体包含一条消息。
i是c#中的新手,提前谢谢
output description:
the program includes the variable of boolean data type and if else statement .the body of if statement includes a message.the body of else includes a message.
i am new in c#,,,thanks in advance
推荐答案
看看:
如果不是,请切换案例
这篇关于如何描述c#程序,包括if else和switch case的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!