There are several shell programs available for download on the internet that will generate prime numbers. The best way to find a Prime number is through calculation, however.
2,3,5,7,9,11,13,17,19,23,29,31,37,39,41,43,47,49
The pseudo code would be as follows (you figure out the syntax) 1) Prompt the user to enter a number 2) If entered number is alpha, quit program after displaying message that the user ended the program. 3) Otherwise, find Modulo 2 of the entered number. This is a fancy way of saying "find the remainder when the number is divided by 2) 4) If Modulo 2 is zero, the number is even, otherwise odd 5) Display message showing if the entered number was Even or Odd 6) Branch back to step 1
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
electrons
valence electrons
2,3,5,7,9,11,13,17,19,23,29,31,37,39,41,43,47,49
The 'shell' is a user interface program that interfaces between a user of the system and the Operating System. It is the user interface.
k
syntax error
The 'shell' is a user interface program that interfaces between a user of the system and the Operating System. It is the user interface.
The shell interprets the script, while the C-compiler generates a binary executable.
In an interactive shell session the shell program waits for the user to type in a command. When receiving a command the shell program will then attempt to locate it and process (execute) the command. You are interacting with the shell. Running a shell file requires a pre-stored series of commands stored in a file. Unless the shell program you are running is interactive then the shell executes each command in sequence, without involving the user at all.
no thanks
shell uses an odd number,merge uses an even number?
Shell problems are programs that can be run to find out information about numbers. The problem can help find an even or odd number, or what the sum of a cube is.
The kernel The kernel is the hub of the operating system: it allocates time and memory to programs and handles the filestore and communications in response to system calls. The shell The shell acts as an interface between the user and the kernel. When a user logs in, the login program checks the username and password, and then starts another program called the shell.
seq 1 2 99