.ccls-cache
main
main.cpp
main.d
main.o
Makefile
Config files
.replit
replit.nix
#include <iostream>
using namespace std;
int main() {
int myNumOne = 30; // Integer (whole number without decimals)
int myNumTwo = 10; // Integer (whole number without decimals)
char myLetter = 'A'; // Character
string firstName = "John "; // String (text)
string lastName = "Doe"; // String (text)
bool myBoolean = true; // Boolean (true or false)
cout << "The sum of the two integers is: ";
cout << myNumOne + myNumTwo
<< "\n"; // Output the sum of the two integer variables
cout << "\n"; // creating some space
cout << "\n";
cout << "The student : " << firstName << lastName << " has a grade of "
<< myLetter << "\n"; // Output the names and Letter
if (myLetter == 'A' | myLetter == 'B' |
myLetter == 'C') { // Display a message based on the which letter is
// stored in the myLetter Variable
cout << "This is a passing grade";
} else {
cout << "this is a failing grade";
}
}