[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

C++ Programming :: Basic Concepts - Discussion

Home > C++ Programming > Basic Concepts > MCQs Questions Discussion

8 / 27

What is the output of the below C++ program.

#include<iostream.h>
void main()
{
int n=1;
cout<<endl<<"The numbers are;"<<endl;
do
{
cout <<n<<"\t";
n++;
} while (n<=100);
cout << endl;
 }

APrint natural numbers 0 to 99

BPrint natural numbers 1 to 99

CPrint natural numbers 0 to 100

DPrint natural numbers 1 to 100

Answer: Option (Login/Signup)

Show Explanation

Asked In :: Societe Generale

Post Your Answer Here:     

No Discussion on this question yet!