Mobinga's Posts
Nairaland Forum › Mobinga's Profile › Mobinga's Posts
1 2 3 4 5 6 7 8 ... 39 40 41 42 43 44 45 46 47 (of 257 pages)
What have you done so far? Why don't you use an already made tool? Or Javascript on a webpage? |
bakenda:+1. CPU's multiplication is basically addition. |
There's no future, yet. |
Davidylan seems to come online only to bash posters on death threads. The girl was talented. |
Expatiate! |
bakenda:Haha see a simplified version of your code <?php I know some of us are used to using i++ as our increment statement. . .then within the for loops blocks we'd now use the modulus operator. That's not clean. As it loops through each one . . . 1, 2 , 3 to 350 You can also pass a numeric value (int oh no go pass 3.434 ) as the increment statement i+=7 << The variable increments in 7's. This optimizes your code and allocates less memory. This can be particularly useful when working on big projects. Nothing is too trivial. We can all learn. ![]() |
Quite frankly onluy omo_to_dun has done it the simplest way possible. There could be simpler ways but I think this is the most simple and efficient [color=#EE9A00]for[/color]([color=#0000FF]short[/color] i = [color=#FF0000]0[/color]; i <= [color=#FF0000]343[/color]; i += [color=#FF0000]7[/color]) System.out.println(i); |
Back to Black. RIP |
https://www.nairaland.com/attachments/482484_donfeco_jpgfdb59d319839303851ef0452dc498bad lmqaaaaaaaaaaaaaaaaaaaaaaaoooooooooooooo |
lmfao |
obowunmi:People perish because of lack of knowledge. So because he majored in zoology invariably means he know nothing? Idiotic reasoning. |
Don't get too full of yourselves lads. Its only a friendly. With Kohn for that matter. |
Rotimi. . . |
Has he even started? He has 8 years to go. He's just two months in. |
bakenda:Wrong. This code can be reduced in terms of everything. [quote author=naija_swag link=topic=719179.msg8774164#msg8774164 date=1311425890]too trivial![/quote]This is the sort of arrogance I dislike. omo_to_dun which is a programming beast has attempted it. The essence of the challenge is not to get the answer but to see how concise our codes can be. Please attempt it before concluding. Fayimora:He hasn't simplified it to the last bit! --- Simplicity. |
The syntax highlighter or the code? This should be your output line System.out.println(i); |
Sagamite:Sagamite! |
@fayimora. Using for loops! and Java! @omo_to_dun Nice, but, I expected your output line to pass only "i"; --- I'll code a php syntax highlighter so we'd use in this section. |
Sorry, I forgot to add. Using for loops only. Do you syntax-highlight manually? or has Seun added that feature? |
This is very very simple. However I want to see how some of us code. Write a program that outputs multiples of seven. Write your code here and not the output. Preferably java. Mod :: Using for loops only The shorter the code the better. |
^^ 1 |
I used the google translator API for translating tweets in my client http://ntwyt.com http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&langpair=|en&q="hahahaha" |
Now they are beginning to have some sense, if this article is actually true. |
Someone tell this man to shut up. |
@dhtml nairalands ssh |
1 2 3 4 5 6 7 8 ... 39 40 41 42 43 44 45 46 47 (of 257 pages)



