6 条题解
- 1
信息
- ID
- 3
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- 8
- 标签
- 递交数
- 15105
- 已通过
- 2876
- 上传者
#include<stdio.h> int main() { int n; scanf("%d",&n); while(n<0||n>200){ printf("您输入的值有误,请重新输入"); scanf("%d",&n); } printf("My height is %dcm",n); return 0; }
#include <stdio.h>
int main()
{
int n;
scanf("%d",&n);
if(n>0&&n<200){
printf("My height is %dcm.",n);
}
return 0;
}
#include<iostream>
using namespace std;
int main()
{
double n;
cin >> n;
if((n>0&&n<200))
cout <<"My height is "<< n <<"cm.";
return 0;
}