WPM
100
CPM
100
Errors
0
Time
15Min
Accuracy
100%
Start C++ Programs code typing Practice. C++ Constant Qualifier, Array typing Practice, cpp two dimensional array and operators typing practice, for loop in cpp typing practice.Click on the area below to start typing.

S.No.Paragraph : Practice repeatedly whatever you would like most for full fifteen minutes Lessionsclick to Practice
1const int i = get_size(); // ok: initialized at run time const int j = 42; // ok: initialized at compile time const int k; // error: k is uninitialized const int i = 42; const int ci = i; // ok: the value in i is copied into ci #include int main() { int sum = 0; // sum values from 1 through 10 inclusive for (int val = 1; val <= 10; ++val) sum += val; // equivalent to sum = sum + val cout << "Sum of 1 to 10 inclusive is "<< sum <1.1 Constant qualifier in C++ typing practice
2datatype array-Name [ array-Size ]; int age[5]; //example int age[5] = {19, 18, 21, 20, 17}; age[3] = 20; //assignment of value to fourth indexed array #include using namespace std; int main() { int age[5] = { 19, 18, 21, 20, 17 }; for (int x = 0; x < 5; x++) { cout <1.2 array in c++ practice
3type array-Name [ x ][ y ]; int a[2][3] = { {0, 2, 1} , /* row at index 0 */ {4, 3, 7} , /* row at index 1 */ }; int main() { int a[3][2] = { {0, 2}, {1, 4}, {3, 7} }; for (int i=0; i<3; i++) for (int j=0; j<2; j++) { cout << "a[" <1.3 Cpp 2D array typing practice
4#include using namespace std; int main() { int a = 11; int b = 5; int c; cout << "a + b is :" << a+b << endl; //11+5 cout << "a - b is :" << a-b << endl; //11-5 cout << "a * b is :" << a*b << endl; //11*5 cout << "a / b is :" << a/b << endl; //11/5 cout << "a % b is :" << a%b << endl; //11%5 cout << "a++ is :" << a++ << endl; //11++ cout << "a-- is :" << a-- << endl; //12-- return 0; }1.4 cpp operators typing practice
5#include using namespace std; int main() { int x, num, factorial = 1; cout << "Type positive number: "; cin >> num; for (x = 1; x <= num; ++x) { factorial *= x; // factorial = factorial * x; } cout << "Factorial of " << num << " = " << factorial; return 0; }1.5 for loop in cpp typing practice