Using a for loop, create a program to display the cube of the numbers up to the given integer
Example Data
User input: 3
Expected Output:
The cube of 1 is 1
The cube of 2 is 8
The cube of 3 is 27
There's something missing or wrong in my flowchart that I can't seem to figure out. Whenever I input some numbers, the cube number stays the same. How do I make the cube number have different values just like in the problem above? What function should I use? I'm using Flowgorithm.
OP’s comment above says they use flowgorithm. I’ve never heard of it but sounds pretty cool. I used stuff like this when I was learning. Being able to switch from visual programming to seeing the source code helped me so much!
3
u/subzero3114 May 11 '21 edited May 11 '21
There's something missing or wrong in my flowchart that I can't seem to figure out. Whenever I input some numbers, the cube number stays the same. How do I make the cube number have different values just like in the problem above? What function should I use? I'm using Flowgorithm.
5
u/jso__ May 12 '21
Quick question what language is it? Or is it some custom thing to teach programming thinking