<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>
Chat with our AI personalities
write a c++program by using if statement to read a number and check whether it is positive or negative
45
if it's square root is an integer, it is a square number.
Where do you get that idea? Who doesn't recognize the number 13? Better check whether Canada does, or does not, recognize this number, instead of just assuming such an improbable situation.Where do you get that idea? Who doesn't recognize the number 13? Better check whether Canada does, or does not, recognize this number, instead of just assuming such an improbable situation.Where do you get that idea? Who doesn't recognize the number 13? Better check whether Canada does, or does not, recognize this number, instead of just assuming such an improbable situation.Where do you get that idea? Who doesn't recognize the number 13? Better check whether Canada does, or does not, recognize this number, instead of just assuming such an improbable situation.
Type your answer here... i think we should first enter 1 number then check it