Visual Basic 2005 for Programmers: Deitel Developer Series, Second Edition
by Paul J. Deitel - Deitel & Associates, Inc., Harvey M. Deitel - Deitel & Associates, Inc.
3.1. Introduction
In this chapter, we introduce Visual Basic programming with program code and present examples to demonstrate how programs can display messages and obtain information from the user at the keyboard for processing. The first two programs simply display text on the screen. The next obtains two numbers from the user, calculates their sum and displays the result. The accompanying discussion shows you how to perform various arithmetic calculations and save their results for later use. The fourth example demonstrates decision-making fundamentals by showing you how to compare two numbers in various ways, then display messages based on the comparison results. The final example demonstrates how to display text in a special window known ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access