import java.io.*;
public class Jerry
{
public static void main(String as[]) throws IOException
{
int k=Integer.parseInt(as[0]);
int n=k;
int d=0,s=0;
while(n>0)
{
d=n%10;
s=s+(d*d*d);
n=n/10;
}
if(k==s)
System.out.println("Armstrong number");
else
System.out.println("not Armstrong number");
}
}
/*Program to find whether given no. is Armstrong or not. Example : Input - 153 Output - 1^3 + 5^3 + 3^3 = 153, so it is Armstrong no. */ class Armstrong{ public static void main(String args[]){ int num = Integer.parseInt(args[0]); int n = num; //use to check at last time int check=0,remainder; while(num > 0){ remainder = num % 10; check = check + (int)Math.pow(remainder,3); num = num / 10; } if(check == n) System.out.println(n+" is an Armstrong Number"); else System.out.println(n+" is not a Armstrong Number"); } }
To write a C program to determine if something is odd or even you need to be a programmer. To write a program in C is complicate and only done by programmers.
dono
write a c program that takes a binary file as input and finds error check using different mechanisms.
Active Time spent online
write a c++program by using if statement to read a number and check whether it is positive or negative
/*Program to find whether given no. is Armstrong or not. Example : Input - 153 Output - 1^3 + 5^3 + 3^3 = 153, so it is Armstrong no. */ class Armstrong{ public static void main(String args[]){ int num = Integer.parseInt(args[0]); int n = num; //use to check at last time int check=0,remainder; while(num > 0){ remainder = num % 10; check = check + (int)Math.pow(remainder,3); num = num / 10; } if(check == n) System.out.println(n+" is an Armstrong Number"); else System.out.println(n+" is not a Armstrong Number"); } }
To write a C program to determine if something is odd or even you need to be a programmer. To write a program in C is complicate and only done by programmers.
write a program in C to check whether a given number is apalindrome or not
8086 assembly language program to check wether given number is perfect or not
<html> <head> <Script Language="JavaScript"> var a,n,b=0,t; n=parseInt(window.prompt("enter n","0")); t=n; while(n>0) { a=n%10; b=b+a*a*a; n=n/10; } if(b==t) { document.writeln("Armstrong no"); } else { document.writeln("Not an Armstrong no"); } </script> </head> </html>
dono
write a c program that takes a binary file as input and finds error check using different mechanisms.
Eleven thousand
To properly write your account number on a check, locate the designated area on the check where the account number should be written. Carefully copy the account number from your bank statement or online account to ensure accuracy. Write the account number clearly and legibly to avoid any errors or confusion.
Put it on the memo line
Forty-seven.