Search
 
SCRIPT & CODE EXAMPLE
 

CPP

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;

}
Comment

PREVIOUS NEXT
Code Example
Cpp :: grepper users assemble 
Cpp :: pimpl c++ 
Cpp :: gcd multi num 
Cpp :: c++ over load oprator to print variable of clas 
Cpp :: check whether kth bit is 1 
Cpp :: accepting string with space on same line C++ 
Cpp :: c++ program that put a space in between characters 
Cpp :: the question for me 
Cpp :: PCL normal specific point 
Cpp :: find node from pos linkedlist c++ 
Cpp :: c++ sort numbers by magnitude/absolute value 
Cpp :: vermífugo significado 
Cpp :: fishes code in assignment expert 
Cpp :: how to compile with libstdc++ fedora 
Cpp :: punteros a arrays 
Cpp :: qt_invok 
Cpp :: i++ and++i 
Cpp :: pop back innstring 
Cpp :: c++ cout format specifier for correct number of decimal points 
Cpp :: find the mminimum of the vector and its position in c++ 
Cpp :: std::filesystem::path to std::string 
Cpp :: ue_log example 
Cpp :: cf 633b trivial problem explanation 
Cpp :: convert "c++ to c" code online 
Cpp :: https://www.geeksforgeeks.org/a-program-to-check-if-strings-are-rotations-of-each-other/ 
Cpp :: how to fixed how many digit will be after point in c++ 
Cpp :: cpp qmenu add custom widget action 
Cpp :: online c++ graphics compiler 
Cpp :: typeid to string c++ 
Cpp :: nlohmann json, writing to json file 
ADD CONTENT
Topic
Content
Source link
Name
5+2 =