answersLogoWhite

0


Best Answer

helicopter

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: C program to find the largest and smallest character in a word?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

How do you write program to read a set of real numbers and find the range is given by the difference between largest and smallest number?

Use the following algorithm (written in pseudocode). Let largest be the lowest possible real number. Let smallest be the greatest possible real number. Repeat while there is input... { Read real number r from input. If r is greater than largest then let largest be r. If r is less than smallest then let smallest be r. } End repeat. Let range be largest minus smallest. Output range.


Write a program that will find the smallest largest and average values in a collection of N numbers Get the value of N before scanning each value in the collection of N numbers?

#include #include #include int main(int argc, char *argv[]){int n, smallest, largest, sum, temp;if(argc < 2){printf("Syntax: foo val1[val2 [val3 [...]]]\n");exit(1);}smallest = largest = sum = atoi(argv[1]);for(n = 2; n < argc; n++){temp = atoi(argv[n]);if(temp < smallest) smallest = temp;if(temp > largest) largest = temp;sum += temp;}printf("Smallest: %i\nLargest: %i\nAverage: %i\n", smallest, largest, sum / (argc - 1));return 0;}


How do you write a c program to find the smallest word in a string?

what is if(!(str[i]==32))


What a java program to find largest and smallest value store in the array?

Implement these methods: public static int smallest(int[] arr) { int small = arr[0]; for(int i = 1; i &lt; arr.size(); i++) if(arr[i] &lt; small) small = arr[i]; return small; } public static int largest(int[] arr) { int large = arr[0]; for(int i = 1; i &lt; arr.size(); i++) if(arr[i] &gt; large) large = arr[i]; return large; }


An assembly language program that will take three decimal input and display minimum of them?

program that take three decimal number as input and find the largest among them in assembly language

Related questions

How do you find the interval for a set of data?

You find the the smallest and largest values. The interval is the largest minus the smallest.


What are the smallest and biggest numbers you can find for a line of longitude?

The smallest is 0o0'0'' and the largest is 180o0'0''


How do you write program to read a set of real numbers and find the range is given by the difference between largest and smallest number?

Use the following algorithm (written in pseudocode). Let largest be the lowest possible real number. Let smallest be the greatest possible real number. Repeat while there is input... { Read real number r from input. If r is greater than largest then let largest be r. If r is less than smallest then let smallest be r. } End repeat. Let range be largest minus smallest. Output range.


How do you find rang in math?

the largest number - the smallest number


What is the largest and the smallest continents?

i dont have a clue find it out your self


Why do you subtract to find the range?

The range is the distance from the smallest value to the largest value. This is equivalent to the largest value MINUS the smallest value. Therefore you subtract.


How you calculate the range?

If possible, find the largest and smallest possible values of the variable under study. Then the range = Largest Value minus Smallest Value.


Write a program that will find the smallest largest and average values in a collection of N numbers Get the value of N before scanning each value in the collection of N numbers?

#include #include #include int main(int argc, char *argv[]){int n, smallest, largest, sum, temp;if(argc < 2){printf("Syntax: foo val1[val2 [val3 [...]]]\n");exit(1);}smallest = largest = sum = atoi(argv[1]);for(n = 2; n < argc; n++){temp = atoi(argv[n]);if(temp < smallest) smallest = temp;if(temp > largest) largest = temp;sum += temp;}printf("Smallest: %i\nLargest: %i\nAverage: %i\n", smallest, largest, sum / (argc - 1));return 0;}


What does it mean to find the range of the values?

take the largest number in the sample and subtract the smallest number that is the range


How do you find he range of a set of data?

Find the smallest and the largest values/numbers. These form the range.


How to find the range of numbers?

Subtract the smallest number from the largest number and you will get the distance from the smallest number to the largest number. That is the range. Ex: {-2 -4 -6 3 6 7 12} Smallest number is -6, largest number is 12. 12- (-6) = 12 + 6 = 18. The distance from the smallest number to the largest is 16


Decimals smallest to largest?

There are an infinite number of different decimals. If you have the whole list, then-- The smallest one is the one with the most zeros after the decimal point,or the smallest digit after the zeros if there's a tie.-- The largest one is the one with the most nines after the decimal point,or the largest digit after the nines if there's a tie.If there are less than an infinite number of decimals on your list, then-- The smallest one is the one with the smallest digit after the decimal point,or if it's a tie, the smallest digit in the second place after the decimal point,or of that's a tie, the smallest digit in the third place after the decimal point . . . etc.-- The largest one is the one with the largest digit after the decimal point,or if it's a tie, the largest digit in the second place after the decimal point,or if that's a tie, the largest digit in the third place after the decimal point . . . etc.As soon as you find the largest, find the next largest the same way, byignoring the first largest and finding the largest of the ones that are left.As soon as you find the smallest, find the next smallest the same way, byignoring the first smallest and finding the smallest of the ones that are left.This whole thing feels like trying to explain how to eat a carrot or tie a shoe.