小学生趣味C++编程第47课 称心如意的输入

#include<iostream>
using namespace std;
int main()
{
  float x; 
  cout<<"请输入成绩:";
  do
  {
    cin>>x;
  }while(x<0||x>100);
  cout<<"成绩:"<<x<<endl;
  return 0;
}

  

猜你喜欢

转载自www.cnblogs.com/kixiaoyuan/p/12702280.html
今日推荐