Project on Visual Basic for Number Multiplication

sheth n k t t college of commerce thane n.w
1 / 4
Embed
Share

Learn how to create a Visual Basic project to enter a number, determine if it's greater than zero, and then multiply it by 2 or 5 accordingly. This tutorial showcases code snippets and detailed instructions on implementing this logic within Visual Basic form controls.

  • Visual Basic
  • Project
  • Number Multiplication

Uploaded on | 0 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.

E N D

Presentation Transcript


  1. Sheth N.K.T.T. College of Commerce,Thane T.Y.B.com Computer system and applications Prof.N.N.Varade Topic:Visual Basic

  2. Q. Write a project to enter a number, if number is greater than zero then multiply the number the number by 2, otherwise multiply the number by 5.Display the result . Control and properties: Object Property Setting Form Name frmmulti Caption multiplication Command1 name cmdmulti caption &multiplication Command2 name cmdexit caption &exit

  3. Code: Private sub cmdmulti_click() dim x,ans as integer x= inputbox( enter a number ) if x>0 then ans=x*2 else ans=x*5 end if print ans end sub

  4. Code Command2: private sub cmdexit_click() end end sub

Related


More Related Content