diff --git a/Task 3/Q1/iit2025018/armstrong.cpp b/Task 3/Q1/iit2025018/armstrong.cpp new file mode 100644 index 0000000..3c84081 --- /dev/null +++ b/Task 3/Q1/iit2025018/armstrong.cpp @@ -0,0 +1,24 @@ +#include +#include +#include +#include +using namespace std; + +int main(){ + int n; + cin>>n; + int k=n; + int ans=0; + while(k>0){ + int a=k%10; + ans+= a*a*a; + a/=10; + } + if(ans==n){ + cout<<"yes"; + }else{ + cout<<"no"; + } + return 0; +} + diff --git a/Task 3/Q1/iit2025018/calculator.cpp b/Task 3/Q1/iit2025018/calculator.cpp new file mode 100644 index 0000000..d3d41ef --- /dev/null +++ b/Task 3/Q1/iit2025018/calculator.cpp @@ -0,0 +1,22 @@ +#include +using namespace std; +int main(){ + int x,y; + cout<<"enter the numbers:"; + char a; + cin>>a; + if(a=='+'){ + cout<