How To Uswe A For Loop

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: May 2007
Posts: 30
Reputation: nkhosinathie is an unknown quantity at this point 
Solved Threads: 0
nkhosinathie nkhosinathie is offline Offline
Light Poster

How To Uswe A For Loop

 
0
  #1
May 13th, 2007
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.
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 7,769
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 742
Team Colleague
Narue's Avatar
Narue Narue is online now Online
Code Goddess

Re: How To Uswe A For Loop

 
0
  #2
May 13th, 2007
Code please.
I'm here to prove you wrong.
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 62
Reputation: minigweek is on a distinguished road 
Solved Threads: 4
minigweek's Avatar
minigweek minigweek is offline Offline
Junior Poster in Training

Re: How To Uswe A For Loop

 
0
  #3
May 13th, 2007
Originally Posted by nkhosinathie View 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
A Basic For Loop would be like :
  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
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 30
Reputation: nkhosinathie is an unknown quantity at this point 
Solved Threads: 0
nkhosinathie nkhosinathie is offline Offline
Light Poster

Re: How To Uswe A For Loop

 
0
  #4
May 13th, 2007
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
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 62
Reputation: minigweek is on a distinguished road 
Solved Threads: 4
minigweek's Avatar
minigweek minigweek is offline Offline
Junior Poster in Training

Re: How To Uswe A For Loop

 
2
  #5
May 13th, 2007
HEY!
U posted "a survey program" thread too...
its the same problem!!! Keep one thread for one problem.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC