₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,326,066 members, 8,424,817 topics. Date: Thursday, 11 June 2026 at 04:36 PM

Toggle theme

Mobinga's Posts

Nairaland ForumMobinga's ProfileMobinga's Posts

1 2 3 4 5 6 7 8 ... 39 40 41 42 43 44 45 46 47 (of 257 pages)

ProgrammingRe: Help Needed From All Vba Programmers In The House! by Mobinga: 8:57pm On Jul 24, 2011
What have you done so far? Why don't you use an already made tool? Or Javascript on a webpage?
ProgrammingRe: Programming Challenge. by Mobinga(op): 8:40pm On Jul 24, 2011
bakenda:
That code isn't simpler than my code, at best it's same.It's like you didn't notice that my loop terminates at 50 not 350,
though you used an increment of 7 , your loop terminates at 350----about the same number of cycles.
+1. CPU's multiplication is basically addition.
ProgrammingRe: What Is The Future Of Nigeria's Software Industry? by Mobinga: 8:23am On Jul 24, 2011
There's no future, yet.
ProgrammingRe: New Cool: Javascript Css Selector "yapinator" Faster Than Sizzle: Peppy: Etc by Mobinga: 8:22am On Jul 24, 2011
ProgrammingRe: Virus Programming by Mobinga: 8:19am On Jul 24, 2011
Music/RadioRe: Amy Winehouse Is Dead by Mobinga: 8:11am On Jul 24, 2011
Davidylan seems to come online only to bash posters on death threads. The girl was talented.
Tech JobsRe: As A Final Year Student In Nd2 Computer, I Am Toa To Project: Topic: Design And Implementation Of Da by Mobinga: 8:06am On Jul 24, 2011
Expatiate!
ProgrammingRe: Programming Challenge. by Mobinga(op): 7:53am On Jul 24, 2011
bakenda:
Here is a little modification of my previous code:


<?php
for($i=1;$i<=50;$i++)
{
echo 7*$i."<br/>";
}
?>


If you have the 'right' solution, it's time to show it-the world is waiting?
Haha see a simplified version of your code

<?php
for($i=0;$i<=350;$i+=7)
{
echo $i."<br/>";
}
?>



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. cool
ProgrammingRe: Programming Challenge. by Mobinga(op): 7:40am On Jul 24, 2011
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);
Music/RadioRe: Amy Winehouse Is Dead by Mobinga: 6:18pm On Jul 23, 2011
Music/RadioRe: Amy Winehouse Is Dead by Mobinga: 6:14pm On Jul 23, 2011
Back to Black. RIP
CelebritiesRe: Bad Boy Jim Iyke Purchases 40 Pairs Of Shoes In Houston, Texas. by Mobinga: 4:58pm On Jul 23, 2011
CelebritiesRe: I AM NOT DEAD AS CLAIMED! -JIM IYKE CRIES OUT by Mobinga: 4:57pm On Jul 23, 2011
lmfao
PoliticsRe: President Goodluck Ebele Jonathan Approval Rating by Mobinga: 4:47pm On Jul 23, 2011
obowunmi:
ZERO on all. He majored in zoology for christ sake --- he knows nothing.
People perish because of lack of knowledge.

So because he majored in zoology invariably means he know nothing?

Idiotic reasoning.
European Football (EPL, UEFA, La Liga)Re: Arsenal Fans Thread (for Arsenal Fans) by Mobinga: 4:45pm On Jul 23, 2011
Don't get too full of yourselves lads. Its only a friendly. With Kohn for that matter.
PoliticsRe: Rotimi Amaechi: Rivers Assembly Approves New Aircraft by Mobinga: 2:54pm On Jul 23, 2011
Rotimi. . .
PoliticsRe: President Goodluck Ebele Jonathan Approval Rating by Mobinga: 2:21pm On Jul 23, 2011
Has he even started? He has 8 years to go. He's just two months in.
ProgrammingRe: Programming Challenge. by Mobinga(op): 2:10pm On Jul 23, 2011
bakenda:
Complete PHP solution:


<?php
for($i=1;$i<=50;$i++)
{
$m=7*$i;
echo "$m<br/>";
}
?>


Easy does it. smiley
Wrong. This code can be reduced in terms of everything.

naija_swag:
too trivial!
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:
I mean he has the code already so no point doing it again
He hasn't simplified it to the last bit!



---
Simplicity.
ProgrammingRe: Programming Challenge. by Mobinga(op): 12:28pm On Jul 23, 2011
The syntax highlighter or the code?

This should be your output line System.out.println(i);
PoliticsRe: Despite All The "silly" Arguments Daily, What Has Nairaland Contributed To Naija by Mobinga: 12:19pm On Jul 23, 2011
Sagamite:
For the vulgar thought of saying you want to kill people because of their tribe!

For contributing to heat that might lead to unnecessary suffering and potential killing of each other.
Sagamite!
ProgrammingRe: Programming Challenge. by Mobinga(op): 12:15pm On Jul 23, 2011
@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.
ProgrammingRe: Programming Challenge. by Mobinga(op): 10:03am On Jul 23, 2011
Sorry, I forgot to add. Using for loops only.

Do you syntax-highlight manually? or has Seun added that feature?
ProgrammingProgramming Challenge. by Mobinga(op): 8:10am On Jul 23, 2011
This is very very simple. However I want to see how some of us code.

Write a program that outputs multiples of seven.  shocked shocked Easy innit?  Stop at 350 (50th multiple).

Write your code here and not the output. Preferably java.

Mod :: Using for loops only

The shorter the code the better.
ProgrammingRe: After Writting The Source Codes,how Do I Make It An Application Software! by Mobinga: 8:06am On Jul 23, 2011
^^ 1
ProgrammingRe: Translator Software by Mobinga: 8:05am On Jul 23, 2011
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"
PoliticsRe: Boko Haram:we Have 100 Volunteer Suicide Bombers For 2011 High Profile Targets by Mobinga: 8:00am On Jul 23, 2011
Now they are beginning to have some sense, if this article is actually true.
PoliticsRe: Nigeria Predicted To Have The Highest Averge Gdp Growth In The World In 40 Years by Mobinga: 7:59am On Jul 23, 2011
Someone tell this man to shut up.
GamingRe: Gaming Exchange Site by Mobinga: 8:25pm On Jul 22, 2011
Do it on your own. angry

btw check this http://ntwyt.com
WebmastersRe: Php Poop Quick Quiz :: Merging Multipart Arrays by Mobinga: 10:11am On Jul 22, 2011
@dhtml

nairalands ssh

1 2 3 4 5 6 7 8 ... 39 40 41 42 43 44 45 46 47 (of 257 pages)