mirror of
https://hub.njuu.cf/TheAlgorithms/C-Plus-Plus.git
synced 2023-10-11 13:05:55 +08:00
commit
a378f472ee
@ -2,6 +2,7 @@
|
|||||||
and this sum turns out to be 1 */
|
and this sum turns out to be 1 */
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
int n,k,s=0,d;
|
int n,k,s=0,d;
|
||||||
@ -23,4 +24,5 @@ int main()
|
|||||||
cout << n << " is a happy number" << endl;
|
cout << n << " is a happy number" << endl;
|
||||||
else
|
else
|
||||||
cout << n << " is not a happy number" << endl;
|
cout << n << " is not a happy number" << endl;
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user