Merge pull request #143 from rsenwar/patch-6

Update Happy_number.cpp
This commit is contained in:
Ashwek Swamy 2019-02-09 15:49:47 +05:30 committed by GitHub
commit a378f472ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
} }