• Home
  • What is ?
  • DSA
  • MAD
  • Concept
  • Practice
  • Misc
  • Quiz
  • YT
  • Home
  • What is ?
  • DSA
  • MAD
  • Concept
  • Practice
  • Misc
  • Quiz
  • YT
  • #News
  • #APPS
  • #Events
    • #WWDC
    • #I/O
    • #Ignite
  • #Let’s Talk
  • #Interview
  • #Tips

MyCodeTips mycodetips-newlogocopy1

  • Home
  • What is ?
  • DSA
  • MAD
  • Concept
  • Practice
  • Misc
  • Quiz
  • YT
Programming

How to write code in BASIC Programming Languages

How to write code in BASIC Programming Languages

10 CLS
20 PRINT “Hello, world!”
30 PRINT “I’m learning about commands in BASIC.”
40 PRINT “This text is being printed via the PRINT command.”
50 PRINT “On the next line, I’ll use CLS.”
60 CLS
70 PRINT “Finally, on line 80, I’ll use END.”
80 END
90 PRINT “Now my program is over.”

Line 10 the display is cleared.
Lines 20 through 50 shows first paragraph displayed.
Line 60 again clears the display.
Line 70 shows the message you should see after you run this program.
Line 80 Ends the program.
Line 90 This line helps to show that a END statement stops the program at that point.

==========qBasic===========
CLS
ASTRING$ = “Hello World”
ANUMBER% = 10
PRINT ASTRING$
PRINT ANUMBER%

==========freeBasic=======
Cls
Dim aString As String
Dim anInteger As Integer
aString = “John Doe”
anInteger = 42
Print aString
Print anInteger
Sleep
End

Liked it? Take a second to support Ranjan on Patreon!
Become a patron at Patreon!
  • Click to share on Reddit (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on Twitter (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Tumblr (Opens in new window)
  • More
  • Click to share on Pocket (Opens in new window)
  • Click to share on Pinterest (Opens in new window)
Written by Ranjan - 1108 Views
Tags | basic, Programming
AUTHOR
Ranjan

Namaste, My name is Ranjan, I am a graduate from NIT Rourkela. This website is basically about of what i learnt from my years of experience as a software engineer on software development specifically on mobile application development, design patterns/architectures, its changing scenarios, security, troubleshooting, tools, tips&tricks and many more.

You Might Also Like

js-cheatsheets-advance-methods

JavaScript Methods & Properties CheatSheets

July 25, 2021
objective-c-functions-methods

Functions and Methods in Objective-C

October 15, 2021
thumb-xamarin

Hi, I’m Xamarin and this is my Profile.

July 6, 2021
Next Post
Previous Post

Support us

mycodetips
mycodetips

Follow us @ LinkedIn 2850+

Subscribe for updates

Join 8,213 other subscribers

Latest Posts

  • YT-Featured-solidprinciples
    SOLID Principles of Software Design
  • IOS 16 Features
    Latest features in IOS 16
  • r-language
    How can R language be used for data analysis?
  • wordpress-coding-blog
    Guide To WordPress Coding Standards
  • YT-Featured-Algorithm
    What is Algorithm?
whiteboard

Whiteboard(PRO)

whiteboard

Whiteboard(lite)

alphabets

Kids Alphabet

techlynk

Techlynk

techbyte

Do2Day

techbyte

Techbyte

  • #about
  • #myapps
  • #contact
  • #privacy
  • #Advertise
  • #myQuestions

Android Android Studio API APP Programming Apps blogging CSS DATABASE dsa Features HTML HTML5 installation Interview Questions IOS iPhone javascript Mac objective-c OS Programming quicktips SDK SEO SQL swift Tips & Tricks Tools UI Web Wordpress Xcode

  • SOLID Principles of Software Design
  • Latest features in IOS 16
  • How can R language be used for data analysis?
  • Guide To WordPress Coding Standards
  • What is Algorithm?

©mycodetips.com