You can use the ternary operator, in an expression such as:
result = a > b ? a : b;
This is equivalent to:
if (a > b)
result = a;
else
result = b;
maybe
You can write out this algorithm. This will then be programmed into the device to make determining prime numbers easier.
jgfujtf
The following algorithm works for any number of integers: Assume the first number is the maximum - maximum = (first number). Compare your assumed maximum with the second number. If the second number is larger than the assumed maximum, replace the old assumed maximum with the second number. Repeat for the third number, for the fourth, etc. - always copying the nth. element to the assumed maximum if you find one that is larger than your previous maximum.
Start print "the sum of all even numbers is infinite" end
please give me an algorithm and a corresponding flow chart that displays list of numbers from 1 to 20.
one method is to use MS Excel .but i am interested in the algorithm or steps involved to determine th minimum or maximum that is the science working behind it.
Here is the algorithm of the algorithm to write an algorithm to access a pointer in a variable. Algorithmically.name_of_the_structure dot name_of_the _field,eg:mystruct.pointerfield
Write an algorithm to find the root of quadratic equation
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
a write the algorithm to concatenate two given string
dont know use google instead dumb