Horje
properties of loop in c++ and how it works Code Example
properties of loop in c++ and how it works
#include <iostream>
int main(){

	using namespace std;
	int sum = 0, i, n;

	for(i = 0; i < 10; i++){

		cout << "Enter number" << endl;
		cin >> n;

		sum = sum + n;

	}
	cout << "Sum is " << sum << endl;

	return 0;

}




Cpp

Related
c++ print  text Code Example c++ print text Code Example
Get the absolute path of a boost filePath as a string Code Example Get the absolute path of a boost filePath as a string Code Example
For auto map C Code Example For auto map C Code Example
Int main ( )  {  int i,n;  cin>>n;  i=n;  while(i>=1)  {  i=i+5;  i=i-6;  }  } Code Example Int main ( ) { int i,n; cin>>n; i=n; while(i>=1) { i=i+5; i=i-6; } } Code Example
how to get max grade c++ Code Example how to get max grade c++ Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
12