943,983 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 1346
  • C++ RSS
May 13th, 2007
0

How To Uswe A For Loop

Expand Post »
I Want To Use A For Loop To Enter Three Answers From Three Questions But My Problem Is I Don't Have An Idea Coz I'm New To This C++ Language Please Help? THE LOOP STARTS TO COUNT FROM 100
Last edited by nkhosinathie; May 13th, 2007 at 11:50 am.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
nkhosinathie is offline Offline
30 posts
since May 2007
May 13th, 2007
0

Re: How To Uswe A For Loop

Code please.
Administrator
Reputation Points: 6442
Solved Threads: 1393
Bad Cop
Narue is offline Offline
11,807 posts
since Sep 2004
May 13th, 2007
0

Re: How To Uswe A For Loop

I Want To Use A For Loop To Enter Three Answers From Three Questions But My Problem Is I Don't Have An Idea Coz I'm New To This C++ Language Please Help? THE LOOP STARTS TO COUNT FROM 100
A Basic For Loop would be like :
C++ Syntax (Toggle Plain Text)
  1. for(i=0;i<n;i++)
  2. {
  3. cout<<"I am new to c++"<<"\n";
  4. }
Now it would be better if you explain your question a bit more clearly.
Loop Starts to count from 100 ? Up or Down ?
You want to enter 3 answers for 3 questions. So why would you need to count from 100 anyways ?
Regards
MiniGWeek
Reputation Points: 97
Solved Threads: 5
Junior Poster in Training
minigweek is offline Offline
68 posts
since May 2007
May 13th, 2007
0

Re: How To Uswe A For Loop

the loop is starting from hundred because hundred people completed the following questionnaire.
what is your highest qualification
1.if grade 10
2.if grade 12
3.if any tertiary qualification
how old are you
1.if below 20
2.if between 20-32
3.if above 32
what is your gender.
1.m if male
2.f if female
3.h if hetero
Reputation Points: 10
Solved Threads: 0
Light Poster
nkhosinathie is offline Offline
30 posts
since May 2007
May 13th, 2007
2

Re: How To Uswe A For Loop

HEY!
U posted "a survey program" thread too...
its the same problem!!! Keep one thread for one problem.
Reputation Points: 97
Solved Threads: 5
Junior Poster in Training
minigweek is offline Offline
68 posts
since May 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Input an Array then Find sum of digits and num of digits
Next Thread in C++ Forum Timeline: a department-store customer progam





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC