0% found this document useful (0 votes)
7 views7 pages

03.program With Math

The document discusses Small Basic, a programming tool that simplifies writing programs for mathematical operations. It highlights basic math functions, operators, and the use of WriteLine() for displaying numbers and concatenating text. Users can perform simple operations like addition, subtraction, multiplication, and division using the Math object provided by Small Basic.

Uploaded by

saiagghaminhtut
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views7 pages

03.program With Math

The document discusses Small Basic, a programming tool that simplifies writing programs for mathematical operations. It highlights basic math functions, operators, and the use of WriteLine() for displaying numbers and concatenating text. Users can perform simple operations like addition, subtraction, multiplication, and division using the Math object provided by Small Basic.

Uploaded by

saiagghaminhtut
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

EMPOWERING PROGRAMS WITH MATH

Small Basic makes it for you to write programs that do math for you
You can write a program for simple
operations and math functions
What can you like Algebra (square root, absolute
value, and trigonometric functions).
do in Text
Window ? Small Basic’s Math object provides
these functions and many others.
Four Basic Math Operators

• +, –, *, and /

• The asterisk (*) represents multiplication

• The slash (/) represents division.


Displaying Numbers and Doing Math Anything to
WriteLine() in
• You can also use WriteLine() to display numbers. double
quotes, the
output
window
shows exactly
what’s inside
the quotes.

WriteLine() without
double quotes isn't parts
of a string.

Showing the difference between strings and numbers


Adding a number to text
• [Link]("Let's concatenate: 5 + 7 = " + 12)

You might also like