1/7
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No analytics yet
Send a link to your students to track their progress
comment from <<test>>
cout « “hello” << endl
```
const a = 2
const b = 4
const result = a + b
```
```
#include <iostream> // Required for printing and reading text
#include <string> // Required to use text variables
// A simple dummy function that adds two numbers together
int calculateSum(int number1, int number2) {
return number1 + number2;
}
// The main entry point where the program starts running
int main() {
// 1. Creating dummy variables (data storage)
std::string programmerName = "Alex";
int initialScore = 10;
int bonusPoints = 5;
// 2. Printing basic text output to the screen
std::cout << "Hello, World!" << std::endl;
std::cout << "Welcome to C++, " << programmerName << "!" << std::endl;
// 3. Calling our custom function and saving the result
int totalScore = calculateSum(initialScore, bonusPoints);
std::cout << "Your total starting score is: " << totalScore << std::endl;
// 4. Taking live input from the user
int userAge;
std::cout << "Enter your age: ";
std::cin >> userAge;
// 5. Basic conditional logic (decision making)
if (userAge >= 18) {
std::cout << "You are an adult in this simulation." << std::endl;
} else {
std::cout << "You are a minor in this simulation." << std::endl;
}
return 0; // Signals to the computer that the program completed successfully
}
```
∫abx2dx=b3−a
𝑏𝑎𝑥2𝑑𝑥=𝑏3−𝑎33
x=2a−b±b2−4ac∫abx2dx=3b3−a3c=a2+b2bax2+y2=z2ny
\ce{2H2 + O2 -> 2H2O}
matter (like \(\ce{(g)}\) or \(\ce{(aq)}\)), reversible arrows (\(\ce{\mathnormal{\xrightleftharpoons{}}}\)), or complex organic molecules to this code
<p class="text-styled">This is a paragraph of text.</p>
<p class="text-styled">This is a paragraph of text.</p>
cout<<"First Int "<<1stInt<<endl;
cout<< "Second Int"<< second_Int<<endl;
```
∫ a→b v_vec(t) dt = <∫ a→b f(t) dt, ∫ a→b g(t) dt, ∫ a→b h(t) dt>
∫ v_vec dt = <∫ f(t) dt, ∫ g(t) dt, ∫ h(t) dt>`;
```