Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,150,246 members, 7,807,834 topics. Date: Wednesday, 24 April 2024 at 08:14 PM

Programming - Help Urgently Needed!!! - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Programming - Help Urgently Needed!!! (1133 Views)

C Programming Help / My Fellow Students Of Programming Help Me Out / [Programming Help] Html Experts Urgently Needed (2) (3) (4)

(1) (Reply) (Go Down)

Programming - Help Urgently Needed!!! by rotimihughes(m): 7:17pm On Mar 26, 2012
Hi Guys,
please can anybody good in PHP write a program for this?

All numbers between 0 and 10 that are multiples of 3 or 5 are 3, 5, 6 and 9. The sum of these numbers is 23. Write a program that prints out the sum of all the multiples of 3 or 5 between 0 and 1000.

THIS IS NOT AN ASSIGNMENT - ITS FOR WORK - I ALREADY WROTE IT IN ROR PROGRAMMING LANGUAGE -BUT MY PHP CODING IS EMBARRASSING - I NEED TO TURN THIS IN THIS WEEK - PLEASE YOUR SINCERE ASSISTANCE WILL BE VERY MUCH APPRECIATED. smiley
Re: Programming - Help Urgently Needed!!! by kodewrita(m): 3:47am On Mar 27, 2012
Though my gut says this is definitely an assignment, I'll give it a try.

<?php
$totsum=0;

for($i=0;$i<1000;$i++){
if( ( ( $i%3 ) ==0 ) || ( ( $i%5 )==0 ) ) $totsum+=$i;
}

echo $totsum;

?>
Re: Programming - Help Urgently Needed!!! by rotimihughes(m): 2:12pm On Mar 27, 2012
@kodewrita thanx bruv!!

can I make- i variable value to tsart from 3
instead of 0?

And as to whether this is an assignment or work? - well let's keep that between me and you. Lol
Re: Programming - Help Urgently Needed!!! by Fayimora(m): 8:53pm On Mar 27, 2012
NO offence but if you have done this in one language, why can't you do it in another? Also, what language is ROR?I haven't come across that before!
Re: Programming - Help Urgently Needed!!! by rotimihughes(m): 1:36am On Mar 29, 2012
@FAYIMORA
RoR = Ruby on Rails is a full stack, Web application framework that runs on Ruby programming language.
There is nothing wrong with knowing
more programming languages, but it is always an advantage if you are outstanding in one of them.
There is nothing wrong with being outstanding in all of them either, but right now am focusing all my efforts on learning a skill and market myself as an expert in that field using Ruby on Rails to build agile, scalable web applications. Presently am learning the basics of PHP its just a matter of time . Thanks for your contribution. wink
Re: Programming - Help Urgently Needed!!! by Fayimora(m): 9:34am On Mar 29, 2012
So why did you call it a programming language in the first place? Just so you know I am a Rails Developer and have written some really complex stuff with it! However, I still don't understand how you wrote such a minor thing using Rails! Rails is a WEB FRAMEWORK so how do you write such with a web framework? undecided undecided

Truth be told, if you really have written this somewhere ..............................
Re: Programming - Help Urgently Needed!!! by kaiwei: 10:19am On Apr 10, 2012
well let's keep that between me and you. Lol[img]http://www.filii.info/g.gif[/img]

(1) (Reply)

Hacker Stole $100,000 From Users Of California Based ISP Using SQL Injection / Android Webview / Why Dont Programming Threads Make Front Page?

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 11
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.