Weekly Qbasic and Qb64 Lesson Topics
November 09, 2024, 06:12:48 pm
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Want to see a specific Tutorial? ASK!
 
  Home Help Search Arcade Links Staff List Login Register  

Calculate Age

Pages: [1]
  Print  
Author Topic: Calculate Age  (Read 6053 times)
ChatKing
Post Demos
*
Posts: 23


« on: November 21, 2011, 02:36:37 pm »

simply code for that program is following:-


DIM name1 AS STRING
DIM num1 AS INTEGER
DIM num2 AS INTEGER


INPUT "What is your name"; name1
INPUT "What is the current year"; num1
INPUT "What year were you born"; num2


PRINT name1
PRINT num1
PRINT num2
PRINT num1 - num2 'but this dose not work


SLEEP
Report Spam   Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by EzPortal
Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum


Powered by SMF | SMF © 2016, Simple Machines
Privacy Policy