looping question

Page 1 of 1

3 Replies - 237 Views - Last Post: 18 August 2010 - 03:24 AM Rate Topic: -----

#1 Guest_Help!*


Reputation:

looping question

Posted 18 August 2010 - 12:59 AM

Write a program that would print all the odd numbers between 0 and 100.

MOD EDIT: Topic closed for violating the rules.
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.

Please post like this:

Thank you for helping us helping you.

This post has been edited by JackOfAllTrades: 18 August 2010 - 04:03 AM


Is This A Good Question/Topic? 0

Replies To: looping question

#2 Crunch  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 139
  • View blog
  • Posts: 1,222
  • Joined: 28-July 09

Re: looping question

Posted 18 August 2010 - 01:01 AM

Okay i wrote. :D
Was This Post Helpful? 1
  • +
  • -

#3 Cuzzie  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 72
  • View blog
  • Posts: 341
  • Joined: 16-July 10

Re: looping question

Posted 18 August 2010 - 01:09 AM

[rules][/rules]
Was This Post Helpful? 0
  • +
  • -

#4 mandyiitian  Icon User is offline

  • New D.I.C Head

Reputation: -1
  • View blog
  • Posts: 1
  • Joined: 04-June 10

Re: looping question

Posted 18 August 2010 - 03:24 AM

#include<iostream>
using namespace std;
int main(){
for(int i=1;i<100;i++){
cout<<i<<endl;
i++;
}
return 1;
}
Was This Post Helpful? -1
  • +
  • -

Page 1 of 1