text: calculates the factorial for positive integers from 1 to a given number using loop in vb.net? write a vb .net application that calculates the factorial. the factorial is the product of all the positive integers from 1 to a given number, for example, 4 factorial, usually written 4!, is equal to 24 (1 × 2 × 3 × 4 = 24). the user will enter through a textz1wbox the desired number and you as programmer will display the result in a message box. it should be noted that 0! is by default equal to 1. labelbox is lblinput textbox is txtinput  dim intinput as integer dim total as integer dim answer as integer = 1  intinput = txtinput.text  for total = 1 to intinput answer *= total next  lblinput.text = answer