解题思路:
注意事项:
参考代码:
#include<iostream> #include<cmath> using namespace std; int main() { int x; cin>>x; if(x<15){ cout<<2*x<<endl; }else{ cout<<(x-15)*3+30<<endl; } return 0; }
0.0分
0 人评分
C语言程序设计教程(第三版)课后习题11.1 (C语言代码)浏览:670 |
C语言考试练习题_排列 (C语言代码)浏览:756 |
C语言程序设计教程(第三版)课后习题8.1 (C语言代码)浏览:562 |
C语言训练-数字母 (C语言代码)浏览:666 |
关于float,double变量的几点说明浏览:1922 |
矩形面积交 (C++代码)浏览:1199 |
简单的a+b (C语言代码)浏览:1018 |
矩形面积交 (C语言代码)浏览:1424 |
【计算直线的交点数】 (C语言代码)浏览:980 |
上车人数 (C语言代码)浏览:750 |