Kilalamoko
Elite
Modulus is a mathematical operation that finds the remainderwhen one number is divided by another. It's often represented by the % symbol in programming.
int main() {
std::cout << "Hello World!";
return 0;
}
library, for input and output operation
defines the main function, which is the entry point of any C++ program. The program starts executing from this function.
std::cout is the standard output stream in C++.
<< insert operator
return - means esecutes properly checking
Write pseudocode to calculate and print the average of three numbers.
Me: I have zero idea how to start... what program I use??!
- 10mod3=1 because when 10 is divided by 3, the quotient is 3 and the remainder is 1.
- 15mod4=3 because when 15 is divided by 4, the quotient is 3 and the remainder is 3.
int main() {
std::cout << "Hello World!";
return 0;
}
library, for input and output operation
defines the main function, which is the entry point of any C++ program. The program starts executing from this function.
std::cout is the standard output stream in C++.
<< insert operator
return - means esecutes properly checking
Write pseudocode to calculate and print the average of three numbers.
Me: I have zero idea how to start... what program I use??!
