0

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

3
Contributors
4
Replies
5
Views
11 Years
Discussion Span
Last Post by minigweek
0

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

0

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

2

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

Votes + Comments
Correct.
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.