Page 1 :
Friday, August 20, 2021, 9:07 AM, , COMBINED ICSE 246 Page 1
Page 5 :
class armstrong, {, int temp,r,s=0;, void main(int n), {, temp=n;, while(n>0), {, r=n%10;, s=s+r*r*r;, n=n/10;, }, if(s==temp), System.out.println("Armstrong number");, else, System.out.println("not Armstrong number");, }, }, , COMBINED ICSE 246 Page 5
Page 7 :
class palindrome, {, int rev=0,r,temp;, void main(int n), {, temp=n;, while(n!=0), {, r=n%10;, rev=rev*10+r;, n=n/10;, }, if(rev==temp), System.out.println("Palindrome number");, else, System.out.println("not a Palindrome number");, }, }, , class spyy, {, int r,s=0,p=1;, void main(int n), {, while(n!=0), {, r=n%10;, s=s+r;, p=p*r;, n=n/10;, }, if(s==p), System.out.println("Spy number");, else, System.out.println("not a Spy number");, }, }, , COMBINED ICSE 246 Page 7