天天看點

使用遞減運算符在循環中按遞減順序列印10到0之間的整數

#include<iostream>
int main(int argc, char const *argv[])
{
    using std::cout;
    int a=10;
    while(a>=0){
        cout<<a<<std::endl;   
        a--;
        }
     return 0;
}
           

  

轉載于:https://www.cnblogs.com/lIllIll/p/10633265.html