15.c++ program to display numbers from 1 to 10 using while loop

// C++ program to display numbers from 1 to 10 using while loop

INPUT:

#include<iostream>

using namespace std;

int main()

{

    int i=1;

    while(i<=10)

    {

        cout<<i<<"\n";

        i++;

    }

}

OUTPUT:





 

Comments

Popular posts from this blog

5.c++ program to get 2 integer numbers and display their sum

Silver Memories . . .

Daily routine