The For Loop Program in C/C++

The For Loop Program in C/C++


#include<iostream>
using namespace std;
int main()
{
int i;

for(i=0;i<=5;i++)
{
cout << i << endl;
}
}

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).