Some beginner code, To help understand some basic's!!
Hello, I am learning c++ , I know the basic's of java already but decided to set my focus on c++. Beneath is just some simple code to help someone beginning understand taking input from the user, adding them together etc using variables etc.
Disclaimer: Please remove if no need, Didn't think this would be spamming.
Simple edit to prove something,
Ki*****cs gay!!
Code:
#include <iostream>
using namespace std;
int main()
{
double yourAge, mothersAge, fathersAge, siblingsAge, averageAge;
cout << "Simple test program, Thank you for your time" << "\n";
cout << "Please enter the age, Including how many months old you are:" << "\n"; cin >> yourAge;
cout << "Please enter the age, Including how many months old your mother is: " << "\n"; cin >> mothersAge;
cout << "Please enter the age, Including how many moths old your father is: " << "\n"; cin >> fathersAge;
cout << "Please enter the age, Inclduing how many months old your sibling is, if you have no siblings enter 0: " << "\n"; cin >> siblingsAge;
cout << "I will now add, all your familys ages together, And get the adverage age of your family!!" << "\n";
averageAge = yourAge + mothersAge + fathersAge + siblingsAge;
cout << averageAge / 4;
cout << "\n";
return 0;
}
Simple edit to prove something,
Ki*****cs gay!!
