Login
Sign Up


You are using the mobile version of the forum, some features have been disabled to have it responsive.
Limelight Reunion 2024 - v4b1Limelight Discord
Ares Defence Services Discord
Limelight Reunion 2024 - v4b1Limelight DiscordAres Defence Services Discord

receiptDevelopment Blog:

Development Contributor Workflow

receiptHR Blog:

What *are* they doing over there?

receiptTeacher Blog:

Insight into the Teacher Team

receiptDevelopment Blog:

Infrastructure Upgrade 11/2019

receiptDevelopment Blog:

how suggestions???

receiptDevelopment Blog:

Planning for the future.


This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Coding!
Ilias S. radio_button_checked
Limelight Community Donator
Membership
Posts: 444
Threads: 35
Likes Given: 110
Likes Recieved: 242 in 213 posts
Joined: Apr 2016
Reputation: 5
#1
Mar 29, 2017, 02:42 PM
Hey there! Here are some programs that i have made on C++, still learning though. What programs have you made? Feel free to post them!

Code:
#include <iostream>

using namespace std;

int main()
{
    char x;
    int a; int b; int c; int m;
    cout << "Give a name." << endl;
    cin >> x;
    cout << "Give 3 Numbers." << endl;
    cin >> a >> b >> c;
    m=(a+b+c)/3;
    cout << "O mesos oros einai: " << m << endl;
    if (m<14)
    {
        cout << "Bad." << endl;
    }
    else if (m<14 && m>16)
    {
        cout << "Metrios." << endl;
    }
    else if (m>16 && m<18)
    {
        cout << "Good." << endl;
    }
    else if (m>18)
    {
        cout << "Perfect." << endl;
    }
    return 0;
}

Code:
#include <iostream>

using namespace std;

int main()
{
    int a; int b;
    char x;
    cout << "Dose 2 Arithmous." << endl;
    cin >> a >> b;
    cout << "Dose 1 epilogi." << endl;
    cin >> x;
    if (x=='P')
    {
        cout << "Epilogi: Prosthesi." << endl;
        cout << "Caculating..." << endl;
        cout << "Result: " << a+b << endl;
    }
    else if (x=='A')
    {
        cout << "Epilogi: Aferesi." << endl;
        cout << "Caculating..." << endl;
        cout << "Result: " << a-b << endl;
    }
    else if (x=='L')
    {
        cout << "Epilogi: Polaplasiasmos." << endl;
        cout << "Caculating..." << endl;
        cout << "Result: " << a*b << endl;
    }
    else if (x=='D')
    {
        cout << "Epilogi: Dieresi." << endl;
        cout << "Caculating..." << endl;
        cout << "Result: " << a/b << endl;
    }
    else
    {
        cout << "Invalid Parameter." << endl;
    }
    return 0;
}

What do you think?
Kind Regards,
GreekAssassin
LimeLight Community Member
The following 1 user Likes Ilias S.'s post:
  • ZooM




Users browsing this thread: 1 Guest(s)