Computer Science, asked by kartiks0hal, 2 months ago

// To check whether a number is Armstrong or not
public class Armstrong
public static void main(int n)// Enter a number
{
int a.num.s=0;
num=n:
while(n>0)
{
a=n%10;
SSS+a®aa;
n=n/10;
3
if(num=s)
System.out.println("The number™ +num +' is an Armstrong Number");
else
System.out.println("The number" + um +"is not an Armstrong Number");
3
}

(Please Explain Why, Where, How and What is Used)​

Answers

Answered by gouravbansiwal86
1

Answer:

1

#include <bits/stdc++.h>

using namespace std;

4 class Test

5

6

public:

7

Test() { cout << "Constructor called" :)

8

9

10 int main()

11

12

Test *t = (Test *) malloc(sizeof (Test));

13

return 0;

)

15

Similar questions