Junior Developer Code
#include <iostream>
int main ()
{
int a, b ,c;
std::cout << "Enter 2 Numbers to Add
";
cin >> a;
cin >> b;
c=(a+b);
std::cout << "Sum is = " << c;
int x;
std::cin >> x;
return 0;
}
also this, but i dont know how to make it keep going, like change days every 24 hours, but hey you can change it every morning if you like
#include <iostream>
int main ()
{
enum Days { Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday };
Days today;
today = Wednesday;
if (today == Sunday || today == Saturday)
std::cout << " Woot Weekends!";
else
std::cout << "Damn School. Today is" << today;
int x;
std::cin >> x;
return 0;
}
Now im only 13 so please be polite and not critisize(no idea how to spell) But im working on C++ and i wanna help cuz me be bored
|