ASM program to get the sum of integers 1 to 10 in R16 [closed] - avr

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
develop an ASM program to get the sum of integers 1 to 10 in R16..
hope someone can help total newbie

since the task does not require to actual calculate the sum the answer may be pretty easy:
LDI R16, 55

Related

A pseudocode for any positive integer (decimal ) and will display it as binary output [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 days ago.
Improve this question
Want a appropriate pseudocode
Write a pseudocode for any positive integer(decimal ) and display it as binary output .

Calculate % of number in Scala programming [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 11 months ago.
Improve this question
How to do 50% of 120 in scala code..need proper syntax ,& runnable code for same.
Eg :
int k = (int)(120*(50.0f/100.0f));
This is in java need scala code for same.
The answer would be:
(120*(50.0f/100.0f)).toInt

Suppose you have a decimal -12 what is the signed 4 bit representaion of it [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
Suppose you have decimal -12 what is the signed 4 bit representaion of it.
basically -12 = 1 0100 how can i convert this to 4 bit
4-bit twos-complement integers range from -8 (1000) to +7 (0111); there is no representation of -12. You need 5 or more bits for that.

Get round number from rand [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
How I can get always round number from Ruby rand method between the interval rand(1..99999999).
For Example I want to get as a result for example 1000 or 100000
Randomize the power of 10:
10 ** rand(1..9)
Why not this:
('1' + '0' * (0..10).sample).to_i

Come up with an algorithm [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Using only five 3s and valid mathematical operations, how to get answer 31? Only digit 3 should be there and you can use 5 times (no more or less) to get the answer.
Would this work?
33 - 3 + 3/3
You can get to 31 with…
(3**3+(3/3))+3

Resources