Write a visual basic function called compare to compare


Write a Visual Basic function called Compare to compare two numbers and return a code that indicates their relationship: 0 if they are equal, 1 if the first number is larger, and -1 if the first number is smaller. Your main module should prompt the user for the two numbers and pass them to the function. The result is printed in your main module. 

The output should look like this (note that it should work for any values that are input; these are just examples).

Request for Solution File

Ask an Expert for Answer!!
Visual Basic Programming: Write a visual basic function called compare to compare
Reference No:- TGS084344

Expected delivery within 24 Hours