max=number
min=number
counter=1
start while(counter<=3)
read number
start if
max<number
max=number
else if
min>number
min=number
end while
write max
write min
/*modify the counter switch according to the number of values being compared if required*/
Chat with our AI personalities
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
Oh, what a happy little question! To find the even numbers between 1 and 100, we can simply start at 2 and then add 2 each time until we reach 100. In pseudocode, it would look something like this: for i from 2 to 100 step 2 output i Just like painting a beautiful landscape, take your time and enjoy the process of finding those even numbers.
just go the reverse of how they are listed now they are currently largest to smallest
Step1- Read a,b,c. Step2-if a>b continue step 5. Step3- b>c then print “b is the largest " and continue step 7. Step4- continue step 6 Step5-if a>c then print “a is the largest " then continue step7. Step6- print “z is largest". Step7- end.
M D C L X V I = 1,666 or thereabouts.