除却飒沓流星


私信TA

用户名:uq_78478389922

访问量:867

签 名:

等  级
排  名 30981
经  验 451
参赛次数 0
文章发表 3
年  龄 0
在职情况 学生
学  校
专  业

  自我简介:

#include<iostream>

#include<string.h>

using namespace std;

int main()

{

int x,y;

cin>>x;

if(x<1)

{

y=x;

}

else if(x>=1&&x<10)

{

y=2*x-1; 

}

else if(x>=10)

{

y=3*x-11;

}

cout<<y<<endl;

}


 

0.0分

3 人评分

看不懂代码?想转换其他语言的代码? 或者想问其他问题? 试试问问AI编程助手,随时响应你的问题:

编程语言转换

万能编程问答  

代码解释器

代码纠错

SQL生成与解释

  评论区

求问:最后一个为什么只写else会提示【expected‘ ; ’before‘ { ' token】呢  谢谢!
2023-02-01 21:02:56
  • «
  • 1
  • »