Ask your own question, for FREE!
Computer Science 11 Online
OpenStudy (anonymous):

Using the basic program from the previous page, write a similar program to subtract two numbers using VB.NET

OpenStudy (e.mccormick):

Umm... sonce we do not have any of e code, it is hard to say what the issue you are having is.

OpenStudy (anonymous):

im just asking what the code will look like

OpenStudy (e.mccormick):

Well, it will have subtraction in it... so something with a -. But what will be subtracted is hard to say. I do not know if the previous program used constant, variables, input from the user, or what.

OpenStudy (anonymous):

Would you just add a negative number?, such as: Public Sub Command1_Clicked() Result.text = Val(Text1.Text) + Val(Text2.text) End Sub

OpenStudy (e.mccormick):

No need to add a negative, as in + -. Just put the - between them.

OpenStudy (anonymous):

ok

OpenStudy (anonymous):

Module Moduel1 Sub Main() Dim A, B As Integer A = 5 B = 10 Dim C As Integer C = B - A System.Console.WriteLine(C) End Sub End Module So would this be correct

OpenStudy (e.mccormick):

As long as it is similar to the other program, yah.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!