C++基础练习:if与switch语句应用及逻辑表达式转换.pdf

C++基础练习:if与switch语句应用及逻辑表达式转换.pdf

第五课笔头练习

一、抄写以下代码2遍。

#includeiostream

usingnamespacestd;

intmain(){

intn;

cinn;

if(n%2==0)

couteven;

else

coutodd;

return0;

}

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档