#include<iostream.h>
#include<conio.h>
void main(){
int Number[10];
cout<<"Enter ten numbers";
for (int i=0;i<10;i++)
cin>>Number[i];
int Big=0;
for(int j=0;j<10;j++){
if (Big<Number[i])
Big=Number[i];
}
cout<<"gretest Number:"<<Big;
getch();
}
.961
One
2.2.3 and
The greatest thing about decimal numbers is that since most people have 10 fingers/thumbs, they have handy way of using their body to help them when counting. Sorry for the pun, there.
What is the greatest possible number of 83067 and the least
87603
No.
To find the greatest number among a set of numbers provided as command line arguments in a Shell script, you can use a loop to iterate through the arguments. Here's a simple example: #!/bin/bash greatest=$1 for num in "$@"; do if (( num > greatest )); then greatest=$num fi done echo "The greatest number is: $greatest" Save this script as find_greatest.sh, make it executable with chmod +x find_greatest.sh, and run it by passing numbers as arguments, like ./find_greatest.sh 3 5 1 8.
12
If you place the numbers on the number line, they go from the least to the greatest as you go from left to right.
.961
int Greatest(int X, int Y){if(X > Y)return X;return Y;}
One
2.2.3 and
Yes.First find the HCF of two of the numbers, then find the HCF of that answer and the third number.In this way you could find the HCF of as many numbers as you want.
The greatest thing about decimal numbers is that since most people have 10 fingers/thumbs, they have handy way of using their body to help them when counting. Sorry for the pun, there.
What is the greatest possible number of 83067 and the least