i want to write a simple without using pointer or array c program which will print greatest number when i give 20 number .........How far have you gotten so far?
Yes
Assume that the greatest number is the first element (subscript zero). Compare with each element in the array (starting with subscript one), and every time you find one that is greater than the greatest so far, set your variable "greatest" to this number.
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.
Write a program to find the number and sum of all integers from 100 to 300 that are divisible by 11
Which number is greatest?0.0990.2920.3810.413
The greatest factor of any number is the number itself.
Range.
There is no greatest whole number. If x were the greatest whole number then what about x+1? It would be greater than x and it would be a whole number!
Find the number which is furthest to the right.
No.
i want to write a simple without using pointer or array c program which will print greatest number when i give 20 number .........How far have you gotten so far?
The greatest number of scientists are found in New york City.
least to greatest
The mode of a set of numbers is the number that occurs most often.
Oh, well, simply: max = (a + b + c * 2 + abs(a - b) + abs(a + b - c * 2 + abs(a - b))) / 4;
The greatest common factor (or GCF) is the highest number that can divide into aanother number, and not have a decimal (whole number).