answersLogoWhite

0


Best Answer

' Return the maximum of a,b,c

Function max(ByVal a As Integer, ByVal b As Integer, ByVal c As Integer) As Integer

Dim maxAB As Integer

maxAB = Math.Max(a, b)

Return Math.Max(maxAB, c)

End Function

User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

12y ago

Private Sub command1_click()

let a = val(text1.text)

let b = val(text2.text)

let c = val(text3.text)

if a >b then

if a >c then

print a;"is greater of all"

end if

elseif b >a then

if b >c then

print b ; " is greater of all"

end if

elseif c >a then

if c > b then

print c ; " is greater of all "

end if

else print " data provided is not valid "

end if

end if

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

Public Sub Main() Dim X As Integer Dim Y As Integer Dim cnt As Integer 'Our counter. cnt = 1 Do Debug.Print X X = Y + X Y = X - Y If cnt >= 8 Then Exit Do Else cnt = cnt + 1 End If Loop End Su

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you write a program in VB to compare three number and print larger number?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you make something you are printing print bigger?

This depends on what you are trying to print. For example, to print a Word document larger, you can increase the font size. To print a larger image of something, you can resize the image in a visual editing program before printing.


C plus plus program to print number patterns?

bghjg


Program for print prime all number from 1 to 100 in foxpro?

Prime numbers are numbers that are only divisible by themselves and the number 1. You can write a program to print all prime numbers from 1 to 100 in FoxPro.


How do you solve this program wap to print sum of a digit of an inputed number?

wap to print all the arnstrong no. between 100&1000


Write a java script program to print first ten odd natural numbers in C?

Q.1 Write a program to print first ten odd natural numbers. Q.2 Write a program to input a number. Print their table. Q.3 Write a function to print a factorial value.


Program to print the greatest number in unix?

There is no such thing as 'the greatest number'. Here is a program in unix to prove it: echo 'for (i=1; i>=0; i= i*2) print i,"\n";' | bc if you want to actually see the output use it this way: echo 'for (i=1; i>=0; i= i*2) print i,"\n";' | bc | less -S


How can you make print off PC larger?

To make the print, or font, on a PC larger, one will need to adjust the font size. Changing the size will differ depending on what program one is using. Generally, one would select the text in their word processor and then choose a larger font size in the toolbar.


You want to write a simple without using pointer or array c program which will print greatest number when you give 20 number?

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?


What does the print command do in Python?

The print command is a way to display output to the console. The hello world program, for example, can be written in python as simply print("Hello world") Other values can also be used in a print statement: a = 4 print(a) #will print the number 4


How can you make print larger on paper?

I want a simple way to make print larger when i use my printer


Writa a program to print a number in word eg if 972 is entered through the keyboard that should print nine seven two?

nine seven two


Write a program that read phrase and print the number of lower-case letter in it using function of counting?

write a program that reads a phrase and prints the number of lowercase latters in it using a function for counting? in C program