If Statement Program in C/C++

If Statement Program in C/C++




This Program is for "IF Statement", which prints out numbers from 1-10.




#include<iostream>

using namespace std;

int main()

{

int i;

for( i=1;i<=10;i++)

{

cout << "no." << i <<endl;

}

}

Comments

Popular posts from this blog

Continue/Break Statement in c/c++

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