diff --git a/SohaArmstrongNumber.cpp b/SohaArmstrongNumber.cpp new file mode 100644 index 0000000000000000000000000000000000000000..acba399f343b07e6d4e1f2c504e89d2115684c12 --- /dev/null +++ b/SohaArmstrongNumber.cpp @@ -0,0 +1,25 @@ +#include <iostream> + +using namespace std; + +int main() +{ +int arm=0,a,b,c,d,no; +cout << "Enter any number" << endl; +cin >> no; +d = no; +while( no > 0){ + a=no%10; + no=no/10; + arm=arm+a*a*a; +} +if(arm==d){ + cout<<"Yes"; +} +else{ + cout<<"No"; + +} + +return 0; +} diff --git a/SohaHelloWorld.cpp b/SohaHelloWorld.cpp new file mode 100644 index 0000000000000000000000000000000000000000..5f7b46805e16745e03426b36bf069a40a3af0860 --- /dev/null +++ b/SohaHelloWorld.cpp @@ -0,0 +1,6 @@ +#include<bits/stdc++.h> +using namespace std; + +int main(){ + cout << "Hello world! =D" << endl; +}