yes
program to find maximum of two numbers using pointers
largest number a,b,c,d
You can only do this if the two numbers won't be equal: if(a > b) return a; else return b;
Find your own answers....sucks mahn
int max (int a, int b) { return a>b?a:b; }
To find the biggest number in a list using VB.NET, you can use the Max method from the System.Linq namespace. Here's a simple example: Dim numbers As Integer() = {1, 5, 3, 9, 2} Dim maxNumber As Integer = numbers.Max() Console.WriteLine("The biggest number is: " & maxNumber) This code initializes an array of integers, finds the maximum value using Max(), and prints the result.
Answers down there. range: add the numbers all up and divide how many numbers you have. meadian: put all the numbers in order from smallest to biggest, then find the one in the middle. mean: the biggest minus the smallest. HOPE YOU GET AN A+!!! *************************************************______________________
Find the biggest common factor and divide it by both numbers
you take the biggest number and subtract it by the smallest number.
arg_cnt=$# arg_list=$* biggest=$1 if [ $arg_cnt -eq 0 ]; then echo "$RF there should be minimum 1 argument" exit 1 fi for each_arg in $arg_list do if [ $each_arg -gt $biggest ]; then biggest=$each_arg fi done echo " Biggest number is : $biggest \n" exit 0
Find the largest of two, then find the largest of that value and the third value. int* max (int* a, int* b) { return (a*) > (b*) ? a : b; } int* max_of_three (int* a, int* b, int* c) { return max (max (a, b), c); }
The smallest is 0o0'0'' and the largest is 180o0'0''