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

Recommended Answers

All 4 Replies

Code please.

commented: Overdoing the self control there, arenchya? -1

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

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

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

commented: Correct. +19
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.