cho "Enter A Number :" read n r=n s=0 rem=0 while [ $n -gt 0 ] do rem=$(($n%10)) s=$(($s+$rem*$rem*$rem)) n=$(($n/10)) done if [ $r -eq $s ] then echo "The Number is Avogadro" else echo "The Number is Not Avogadro" fi
Avogadro's number is written in standard numerical notation as 6.022 × 10²³. This means it is represented as 602,200,000,000,000,000,000,000, which quantifies the number of atoms, ions, or molecules in one mole of a substance.
write a c++program by using if statement to read a number and check whether it is positive or negative
Write a function that implements an algorithm that checks to see if a particular integer is prime (returning a boolean). Write a program that uses that function on each number from 1 to 100, and if true, displays that number.
Yes, do write, or if you're too lazy to your homework, use google.
write a c program to accept a number and generate a square root cube and exponential values
Avogadro's number is a constant. Therefore only one number is equal to Avogadro's number.
k
no thanks
seq 1 2 99
write a shell program for finding out gcd of three given numbers? write a shell program for finding out gcd of three given numbers? write a shell program for finding out gcd of three given numbers? check bellow link http://bashscript.blogspot.com/2009/08/gcd-of-more-than-two-numbers.html
dono
Avogadro's number is written in standard numerical notation as 6.022 × 10²³. This means it is represented as 602,200,000,000,000,000,000,000, which quantifies the number of atoms, ions, or molecules in one mole of a substance.
Write a program to convert a 2-digit BCD number into hexadecimal
in winxp del *.* /Q /S
WRITE A PROGRAM TO CONVERT A 2-DIGIT bcd NUMBER INTO HEXADECIMAL
The 'users' command should do that; you don't need to write a shell script to get that information in that format.
echo "Enter the Number" read n r=`expr $n % 2` if [ $r -eq 0 ] then echo "$n is Even number" else echo "$n is Odd number" fi