Welcome, Guest
You have to register before you can post on our site.

Username/Email:
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 49
» Latest member: antwantillman
» Forum threads: 4,492
» Forum posts: 4,495

Full Statistics

Online Users
There are currently 964 online users.
» 0 Member(s) | 961 Guest(s)
Bing, Yandex, Applebot

Latest Threads
SELECT statement with MS ...
Forum: MS Access SQL Tutorials
Last Post: Qomplainerz
07-27-2023, 03:35 PM
» Replies: 0
» Views: 1,410
SELECT statement with the...
Forum: MS Access SQL Tutorials
Last Post: Qomplainerz
07-27-2023, 03:31 PM
» Replies: 0
» Views: 798
Creating hyperlinks in HT...
Forum: HTML5 Tutorials
Last Post: Qomplainerz
07-27-2023, 01:23 PM
» Replies: 0
» Views: 1,163
What's new in HTML5?
Forum: HTML5 Tutorials
Last Post: Qomplainerz
07-27-2023, 12:48 PM
» Replies: 0
» Views: 859
What is HTML5?
Forum: HTML5 Tutorials
Last Post: Qomplainerz
07-27-2023, 12:43 PM
» Replies: 0
» Views: 774
Neck isometric exercises
Forum: Exercises
Last Post: Qomplainerz
07-27-2023, 11:44 AM
» Replies: 0
» Views: 1,102
Shoulder shrug
Forum: Exercises
Last Post: Qomplainerz
07-27-2023, 11:43 AM
» Replies: 0
» Views: 703
Neck retraction
Forum: Exercises
Last Post: Qomplainerz
07-27-2023, 11:43 AM
» Replies: 0
» Views: 685
Neck flexion and extensio...
Forum: Exercises
Last Post: Qomplainerz
07-27-2023, 11:42 AM
» Replies: 0
» Views: 775
Neck rotation
Forum: Exercises
Last Post: Qomplainerz
07-27-2023, 11:42 AM
» Replies: 0
» Views: 738

 
  Basic-256 Integer divisions with values
Posted by: Qomplainerz - 09-14-2020, 09:53 PM - Forum: Basic-256 tutorials, examples and exercises - No Replies

We have learned how to divide numbers before, but the results may be unexpected sometimes,
because the result of 4 / 2 will be 2 and the result of 3 / 2 will be 1.5.
In case we always want the result to be a whole number (Integer) we can do the following:

   

Print this item

  Basic-256 Modulus with user input
Posted by: Qomplainerz - 09-14-2020, 09:49 PM - Forum: Basic-256 tutorials, examples and exercises - No Replies

Getting the modulus of two numbers given by the user can be done as shown on the image below:

   

Print this item

  Basic-256 Modulus with variables
Posted by: Qomplainerz - 09-14-2020, 09:47 PM - Forum: Basic-256 tutorials, examples and exercises - No Replies

And we will go on with variables again.
The modulus of variables can be calculated as shown on the image below:

   

Print this item

  Basic-256 Modulus with values
Posted by: Qomplainerz - 09-14-2020, 09:44 PM - Forum: Basic-256 tutorials, examples and exercises - No Replies

Now we will use modulus to get the remainder of a division as shown on the image below:



Attached Files Thumbnail(s)
   
Print this item

  Basic-256 Exponentiations with user input
Posted by: Qomplainerz - 09-14-2020, 09:42 PM - Forum: Basic-256 tutorials, examples and exercises - No Replies

And now the user input.
Exponentiations with user input can be done as shown on the image below:

   

Print this item

  Basic-256 Exponentiations with variables
Posted by: Qomplainerz - 09-14-2020, 09:39 PM - Forum: Basic-256 tutorials, examples and exercises - No Replies

And we will go on with variables.
Exponentiations with variables can be done as shown on the image below:

   

Print this item

  Basic-256 Exponentiations with values
Posted by: Qomplainerz - 09-14-2020, 09:37 PM - Forum: Basic-256 tutorials, examples and exercises - No Replies

As usual, we will start with values.
Exponentiations with values can be done as shown on the image below:

   

Print this item

  Basic-256 Divisions with user input
Posted by: Qomplainerz - 09-14-2020, 09:10 PM - Forum: Basic-256 tutorials, examples and exercises - No Replies

Dividing numbers given by the user can be done as shown on the image below:

   

Print this item

  Basic-256 Divisions with variables
Posted by: Qomplainerz - 09-14-2020, 09:07 PM - Forum: Basic-256 tutorials, examples and exercises - No Replies

We will continue with variables.
The values of the variables can be changed in the editor by re-assigning and re-initializing them.
However, divisions with variables can be done as shown on the image below:

   

Print this item

  Basic-256 Divisions with values
Posted by: Qomplainerz - 09-14-2020, 09:04 PM - Forum: Basic-256 tutorials, examples and exercises - No Replies

We will start with values again.
Divisions with given values can be done as shown on the image below:

   

Print this item