echo "enter the 3 numbers"
read a b c
if [ $a -gt $b ]&&[ $a -gt $c ]
then
echo "$a is big"
elif [ $b -gt $c]
then
echo "$b is big"
else
echo "$c is big"
fi
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
Then you have a tie, for either first place or last place.
Oh, what a happy little math question we have here! To find the greatest common factor of 48, 54, and 84, we look for the largest number that can evenly divide all three numbers. The greatest common factor of these numbers is 6. Just like painting a beautiful landscape, finding the greatest common factor is about finding harmony and balance in numbers.
Any three.
#include<stdio.h> #include<conio.h> void main() { int a,b,c; clrscr(); printf("enter the three numbers: "); scanf(%d%d%d:,&a&b&c); if(a>b | a>c) { printf("the greatest no: is %d",a); } if(b>c) { printf("the greatest no: is %d",b); } else { printf("the greatest no: is %d",c); } getch(); }
The sum of the three greatest prime numbers that are less than 39 is 97.
63, 18 and 9
You need at least two numbers to find a GCF.
The greatest common factor for the numbers 3 and 37 is 1.
The answer is 998.
The numbers three and five have the greatest common factor of one.
4,8,12