954,202 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

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

nkhosinathie
Light Poster
30 posts since May 2007
Reputation Points: 10
Solved Threads: 0
 

Code please.

Narue
Bad Cop
Administrator
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
 
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 :

for(i=0;i<n;i++)
{
cout<<"I am new to c++"<<"\n";
}

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

minigweek
Junior Poster in Training
68 posts since May 2007
Reputation Points: 97
Solved Threads: 5
 

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

nkhosinathie
Light Poster
30 posts since May 2007
Reputation Points: 10
Solved Threads: 0
 

HEY!
U posted "a survey program" thread too...
its the same problem!!! Keep one thread for one problem.

minigweek
Junior Poster in Training
68 posts since May 2007
Reputation Points: 97
Solved Threads: 5
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You