for loop

for loop assignment

Page 1 of 1

2 Replies - 531 Views - Last Post: 21 November 2009 - 12:02 PM Rate Topic: -----

#1 emansafwan  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 21-November 09

for loop

Post icon  Posted 21 November 2009 - 10:16 AM

1. Write a code using the for-loop to print the character and its ASCII code from 0 to 128.
2. Write c++ program that print the numbers from 11 to 35 ,each five elements on one line.The output like the following: (Using if and for loop statement)

11 12 13 14 15
16 17 18 19 20
21 22 23 24 25
26 27 28 29 30
31 32 33 34 35

Attached File(s)


Is This A Good Question/Topic? 0
  • +

Replies To: for loop

#2 AMnova  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 38
  • Joined: 15-November 09

Re: for loop

Posted 21 November 2009 - 11:17 AM

 for(;;)
 {
	   //add code here
}





i got it started for you, now you finish it

This post has been edited by AMnova: 21 November 2009 - 11:18 AM

Was This Post Helpful? 1

#3 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6058
  • View blog
  • Posts: 23,496
  • Joined: 23-August 08

Re: for loop

Posted 21 November 2009 - 12:02 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: :code:

Thanks.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1