Using the basic program from the previous page, write a similar program to subtract two numbers using VB.NET
Umm... sonce we do not have any of e code, it is hard to say what the issue you are having is.
im just asking what the code will look like
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.
Would you just add a negative number?, such as: Public Sub Command1_Clicked() Result.text = Val(Text1.Text) + Val(Text2.text) End Sub
No need to add a negative, as in + -. Just put the - between them.
ok
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
As long as it is similar to the other program, yah.
Join our real-time social learning platform and learn together with your friends!