help me
a program for counting, displaying even and odd numbershelp me
Page 1 of 1
8 Replies - 20308 Views - Last Post: 07 December 2009 - 12:53 AM
#1
a program for counting, displaying even and odd numbers
Posted 20 February 2008 - 04:12 AM
Replies To: a program for counting, displaying even and odd numbers
#2
Re: a program for counting, displaying even and odd numbers
Posted 20 February 2008 - 05:14 AM
Jamesazim, on 20 Feb, 2008 - 04:42 PM, said:
help me
at least 10th post asking for ready made code today [that's what I observed, count may be more than this]. Is that assignment submission date for schools approaching?
We are here to help you friends, not to do the homework for you. Grow up and do your things yourself.
[are you going to ask us to f*** your girl for the first time, just because you are new to it?
This post has been edited by PsychoCoder: 20 February 2008 - 05:42 AM
#3
Re: a program for counting, displaying even and odd numbers
Posted 20 February 2008 - 12:22 PM
Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.
Post your code like this:
Thanks.
Post your code like this:
Thanks.
#4
Re: a program for counting, displaying even and odd numbers
Posted 22 February 2008 - 07:05 AM
Count from 1 to 100
If it's even print in column 1
If it's odd print it in column 2
no code, no help.
If it's even print in column 1
If it's odd print it in column 2
no code, no help.
#5
Re: a program for counting, displaying even and odd numbers
Posted 22 February 2008 - 08:10 AM
I agree with the others, though it can be troublesome working things out on your own
Here's a start for you
lol have fun
Here's a start for you
for i = 1 to 100 [i]insert code here[/i] next i
lol have fun
#6
Re: a program for counting, displaying even and odd numbers
Posted 25 February 2008 - 10:57 AM
another big hint...
if int(i/2)=i/2 then
I am even... :-)
end if
if int(i/2)=i/2 then
I am even... :-)
end if
#7
Re: a program for counting, displaying even and odd numbers
Posted 05 April 2009 - 08:28 PM
LookNAO, on 25 Feb, 2008 - 09:57 AM, said:
another big hint...
if int(i/2)=i/2 then
I am even... :-)
end if
if int(i/2)=i/2 then
I am even... :-)
end if
ummm....i have a problem i was never formaly trained on how to use a timer, and i tried to get it i just cant, well i kinda did, i got a countdown timer to work but not just a counting one, you see i need my program to just count like 1...2...3...4...etc but i cant get it to work.....it always needs a damn maxtime variable, here is what i have so far any help would be greatly appriciated thanks, "lblTime.Caption = Format((Int((M - C) / 60)), "00") & ":" & Format(((M - C) Mod 60), "00")
#8
Re: a program for counting, displaying even and odd numbers
Posted 05 April 2009 - 10:09 PM
#9
Re: a program for counting, displaying even and odd numbers
Posted 07 December 2009 - 12:53 AM
dim i as integer
dim sum as integer
sum=0
for i = 1 to 100
{
if (i mod 2 == 0) then
{
sum = sum + i
}
end if
next i
}
msgbox "the sum of all even numbers are:" + sum
you cud try dis..hope it will help you
dim sum as integer
sum=0
for i = 1 to 100
{
if (i mod 2 == 0) then
{
sum = sum + i
}
end if
next i
}
msgbox "the sum of all even numbers are:" + sum
you cud try dis..hope it will help you
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote





|