总结

    xiaoxiao2021-12-04  19

    #include <iostream> using namespace std; void  narcissus() { int x;// int y;// int z;// for (int n = 101; n < 1000; n++) { x = n % 10; y = (n / 10) % 10; z = n / 100; if (n == x*x*x + y*y*y + z*z*z) { cout << " " << n; } } } int main() { narcissus(); system("pause"); return 0;

    }

    关于水仙花的题

    1.函数运算思路

    2.函数的返回值用不用。

    3.怎么解决未标明的标识符

    4.正确写分号的运用

    5.循环语句正确的用法

    转载请注明原文地址: https://ju.6miu.com/read-680387.html

    最新回复(0)