//看代码,这是第一个
#include <iostream>
using namespace std;
int main()
{
for(int t=0;t<=30;t+=1){
cout << t <<endl;
}
return 0;
}//这个输出到30
/******************************第二个*************************/
#include <iostream>
using namespace std;
int main()
{
for(double t=0;t<=30;t+=0.1){
cout << t <<endl;
}
return 0;
}//为毛这个输出到29.9就停了???????????