Arduino Forum
Powers of Two Using Bitshift
Projects
Programming
system
October 25, 2012, 1:33am
5
Try something like:
for (int x = 0; x < 6; x++) { Serial.print(1<<x); Serial.print(", "); }
show post in topic
Related topics
Topic
Replies
Views
Activity
Math (pow) function problem
Troubleshooting
13
9123
May 6, 2021
pow() function not behaving as expected
Programming
7
2469
May 5, 2021
Mistakes with shift operation
Programming
3
1482
May 5, 2021
trouble with function Pow in for loop
Programming
6
1850
May 5, 2021
How do I do this program?
Programming
30
758
May 17, 2022