While Loop Program in C/C++

While Loop Program in C/C++




#include<iostream>
using namespace std;
int main()
{
int i=0;
while (i<=10)
{
cout << i << '\t';
i++;
}
}


Comments

Popular posts from this blog

Classes in OOP (Object Oriented Programming)

A small airline has just purchased a computer for its new automated reservations system. You’ve been asked to program the new system. You are to write a program to assign seats on each flight of the air line’s only plane (capacity: 10 seats).