Add Two Numbers Together

From DavinciWiki
Jump to: navigation, search

Description

This procedure is one of the most basic things that can be done in davinci. Two different numbers will be created and then added together.

Be aware that these operations can be done with multiplication, division and subtraction too.

Procedure

Stores a value of 1 in a variable "a"

 dv> a=1
 1

Stores a value of 2 in a variable "b"

 dv> b=2
 2

Adds a and b and stores the result in a new variable "c"

 dv> c=a+b
 3     

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

  • davinci-dev [AT] mars.asu.edu

All other topics

  • See navigation on the left

Personal tools