first u enter three numbers .
void main()
{
int a,b,c;
clrscr();
printf("Enter a:");
scanf("%d",a);
printf("Enter b:");
scanf("%d",b);
printf("Enter c:");
scanf("%d",c);
if(a>b)
{
if (a>c)
printf("the greater no is:%d",a);
}
if(b>a)
{
if (b>c)
printf("the greater no is:%d",b);
}
if(c>a)
{
if (c>b)
printf("the greater no is:%d",a);
}
getch();
}
# include<iostream.h>
# include<conio.h>
void main()
{
int a,b,c;
clrscr();
cout<<"enter the first,second,third no you like\n";
cin>>a>>b>>c;
if(a>b&&a>c)
cout<<"first no is greater i.e "<<a<<endl;
if(b>a&&b>c)
cout<<"second no is greater i.e "<<b<<endl;
else
cout<<"third no is greater i.e "<<c<<endl;
getch();
}
identification division. program-id. greatest. environment division. data division. working-storage section. 77 a pic 999. 77 b pic 999. 77 c pic 999. procedure division. greatest. display "ENTER THE THREE NUMBERS:". accept a. accept b. accept c. if a > b and a > c display a "is greatest" else if b > c display b "is greatest" else display c "is greatest". display " thank you". stop run.
#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(); }
start input A & B if A>B print A is greatest if B>A print B is greatest stop james ola writes.....SOT.
(defun max3 (a b c) (cond ((> a b) (cond ((> a c) a) (t c))) ((> b c) b) (t c) ) )
Please visit http://talentsealed.blogspot.com/2009/10/to-find-smallest-among-three-using.htmlfor answer.
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
Yes. But why?
1 2 3
barsanabegam
Oh, well, simply: max = (a + b + c * 2 + abs(a - b) + abs(a + b - c * 2 + abs(a - b))) / 4;
identification division. program-id. greatest. environment division. data division. working-storage section. 77 a pic 999. 77 b pic 999. 77 c pic 999. procedure division. greatest. display "ENTER THE THREE NUMBERS:". accept a. accept b. accept c. if a > b and a > c display a "is greatest" else if b > c display b "is greatest" else display c "is greatest". display " thank you". stop run.
The GCF is 1.
Their greatest common factor is 27
Typically, depending on the specific program of study and the credit load carried per semester, a masters can take between two and three years to complete.Typically, depending on the specific program of study and the credit load carried per semester, a masters can take between two and three years to complete.Typically, depending on the specific program of study and the credit load carried per semester, a masters can take between two and three years to complete.Typically, depending on the specific program of study and the credit load carried per semester, a masters can take between two and three years to complete.Typically, depending on the specific program of study and the credit load carried per semester, a masters can take between two and three years to complete.Typically, depending on the specific program of study and the credit load carried per semester, a masters can take between two and three years to complete.
0.5, 0.6, 0.7
2,1 2,2 2,3
#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(); }