Science, asked by ramata299, 11 months ago

c++ code using while 1,2,3,4,5.

Answers

Answered by abdurrehman3698
0

Answer:

#include<iostream.h>

#include<conio.h>

void main()

{

clrscr();

int a;

a=1;

while(a<=5)

{

cout<<a;

}

getch();

}

Answered by BrainlyYoda
9

Answer:

#include <iostream>

using namespace std;

int main()

{

   int i;

   i = 1;

   while(i<=5)  

   {

       cout << i << ",";

       i++;

   }

   cout << endl;

}

The above code will give you required output.

C++ =>

1. C++ is a programming language.

2. Bjarne Stroustrup created C++

3. International Organization for Standardization (ISO) standardized C++

4. C++ is an object-oriented programming language.

Similar questions