+ 2

How me to change this course with only 2 for?

https://code.sololearn.com/cHOII65G023Y/?ref=app

4th Dec 2017, 9:29 AM
Ruuko
Ruuko - avatar
30 Respuestas
+ 8
@Ruuko, what is this program for? there's so many loops used, what kind of output do you want from the code?
4th Dec 2017, 9:37 AM
Ipang
+ 6
@Gordie mate, Thanks for the example and your time, I know this is for @Ruuko, but still, I'm keeping a copy, for my own study :o)
4th Dec 2017, 2:27 PM
Ipang
+ 6
It's @Gordie's custom macro function for getting an absolute number (abs) if the input(x) is less than zero it will return the positive same number. e.g x=-3, it will return 3 I get that one from his sample too :)
4th Dec 2017, 2:42 PM
Ipang
+ 4
@Ruuko, I have run the program, but the output is incomplete, because of time limit exceeded. Is this supposed to draw some kind of pattern, what image is supposed to be drawn by the pattern mate?
4th Dec 2017, 11:04 AM
Ipang
+ 4
@Gordie your way of explaining is not complicated at all, it's rather a more detailed explanation, trust me, I know this for sure from your ultra code :D I was just giving a brief of your macro, in case you are elsewhere busy on something else :) @Ruuko, I learned new things from @Gordie, I hope you too have new things found to learn from his work :)
4th Dec 2017, 3:07 PM
Ipang
+ 3
Explain the task, I could help. But unless you use while, 2 for loops is impossible
4th Dec 2017, 9:33 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 3
its okay gordie i newly study it and i get new :3
4th Dec 2017, 2:47 PM
Ruuko
Ruuko - avatar
+ 2
ah that it gordie thanks for it :D
4th Dec 2017, 2:12 PM
Ruuko
Ruuko - avatar
+ 2
ohh ... ok if i get trouble with understanding it i will ask again :3
4th Dec 2017, 3:02 PM
Ruuko
Ruuko - avatar
+ 2
i make it :D
5th Dec 2017, 4:08 AM
Ruuko
Ruuko - avatar
+ 1
just run the program that you know what i mean xuz i can realize the image
4th Dec 2017, 10:43 AM
Ruuko
Ruuko - avatar
+ 1
my task is make the shape that i make on my program but can you make the program more effective?
4th Dec 2017, 10:46 AM
Ruuko
Ruuko - avatar
+ 1
@Pegasus if you can make it white while i like to look the source code
4th Dec 2017, 10:47 AM
Ruuko
Ruuko - avatar
+ 1
@ipang dont input the number above 5
4th Dec 2017, 11:07 AM
Ruuko
Ruuko - avatar
+ 1
hmm thanks for clue gordie
4th Dec 2017, 11:48 AM
Ruuko
Ruuko - avatar
+ 1
i have observise my code for 2 hour :3
4th Dec 2017, 2:13 PM
Ruuko
Ruuko - avatar
+ 1
ok and the continue statement is getting back to the up for?
4th Dec 2017, 2:55 PM
Ruuko
Ruuko - avatar
+ 1
its cause a skip right?
4th Dec 2017, 2:56 PM
Ruuko
Ruuko - avatar
+ 1
@gordie can i make them without absolute?
5th Dec 2017, 1:08 AM
Ruuko
Ruuko - avatar
0
ano.. can you define this for me what the meaning. #define abs(x) ((x) < 0 ? -(x) : (x))
4th Dec 2017, 2:32 PM
Ruuko
Ruuko - avatar