- Get link
- X
- Other Apps
Control statement in c++ programming - 1. For loop statement in c++ programming - In this loops we run a single part of code many times this used for simple our programming and in less code , time work done is same . Syntax - for(int i =0; i< x ; i++){ ..... } Code - // For loop in c++ language #include <iostream> using namespace std; int main () { int i , a ; cout << "Loop was start Below " << endl ; cout << "Enter the value of a:" << endl ; cin >> a ; for ( i = 0 ; i <= a ; i ++ ) { cout << "this is a number count :" << i << endl ; } ...