Code Jam 1.0 | لعبة وكود

Mini UNO

Abdullah Araqsousi

ABDULLAH ALERKSOUSI

MINI UNO

Code jam ||لعبة وكود

العرض النهائي

Sedrah Sadah

أوجد واجمع الأرقام

Sedra sada

#include<iostream>

using namespace std;

int main()

{

    cout << "Are you ready to play" << endl;

    string x;

    cin >> x;

    if (x == "yes")

    {

        cout << "Let's Play" << endl;

        cout << "Please write a number(Sedra) :" << endl;

        int w;

        cin >> w;

        cout << "Please enter 3 numbers:::" << endl;

        int q, e, r;

        cin >> q;

        cin >> e;

        cin >> r;

        int s = q + r + e;


        if (w == s)

        {

            cout << "You are the winner" << endl;

        }

        else

        {

            cout << "You are loser" << endl;

            cout << "Try again" << endl;

        }

    }

    else

    {

        cout << "see you next time " << endl;

    }

}

كوكب زمردة

Abdulkadir Muwakked and 2 OthersNour Al-Huda Al-Khatib
Mahmod Koki

كوكب زمردة

Code Jam | لعبة وكود

#include <iostream>

using namespace std;

int main()

{

    cout << " You Should make a line after write number of stars.." << endl;

    string a;

    cout << "  1   5   7   9 " << endl;

    cout << "  2   6   9   8 " << endl;

    cout << "  7   4   3   0 " << endl;

    cout << "  6   0   1   9 " << endl;

    cout << " Write a number of stars between 1 and 12 stars.." << endl;

    cin >> a;

    if ( a == "*")

    {

        cout << "  1   5   7" <<"***"<< "9 " << endl;

        cout << "  2   6   9   8 " << endl;

        cout << "  7   4   3   0 " << endl;

        cout << "  6   0   1   9 " << endl;

    }

    if ( a == "**")

    {

        cout << "  1   5   7   9 " << endl;

        cout << "  2   6" <<"***"<< "9   8 " << endl;

        cout << "  7   4   3   0 " << endl;

        cout << "  6   0   1   9 " << endl;

    }

    if ( a == "***")

    {

        cout << "  1   5   7   9 " << endl;

        cout << "  2   6   9   8 " << endl;

        cout << "  7   4   3   0 " << endl;

        cout << "  6   0   1" <<"***"<< "9 " << endl;

    }

    if ( a == "****")

    {

        cout << "  1   5   7   9 " << endl;

        cout << "  2   6   9   8 " << endl;

        cout << "  7   4   3" <<"***"<< "0 " << endl;

        cout << "  6   0   1   9 " << endl;

    }

    if ( a == "*****")

    {

        cout << "  1   5   7   9 " << endl;

        cout << "  2   6   9   8 " << endl;

        cout << "  7" <<"***"<< "4   3   0 " << endl;

        cout << "  6   0   1   9 " << endl;

    }

    if ( a == "******")

    {

        cout << "  1" <<"***"<< "5   7   9 " << endl;

        cout << "  2   6   9   8 " << endl;

        cout << "  7   4   3   0 " << endl;

        cout << "  6   0   1   9 " << endl;

    }

    if ( a == "*******")

    {

        cout << "  1   5   7   9 " << endl;

        cout << "  2   6   9   8 " << endl;

        cout << "  7   4   3   0 " << endl;

        cout << "  6" <<"***"<< "0   1   9 " << endl;

    }

    if ( a == "********")

    {

        cout << "  1   5" <<"***"<< "7   9 " << endl;

        cout << "  2   6   9   8 " << endl;

        cout << "  7   4   3   0 " << endl;

        cout << "  6   0   1   9 " << endl;

    }

    if ( a == "*********")

    {

        cout << "  1   5   7   9 " << endl;

        cout << "  2   6   9   8 " << endl;

        cout << "  7   4   3   0 " << endl;

        cout << "  6   0" <<"***"<< "1   9 " << endl;

    }

    if ( a == "**********")

    {

        cout << "  1   5   7   9 " << endl;

        cout << "  2   6   9   8 " << endl;

        cout << "  7   4" <<"***"<< "3   0 " << endl;

        cout << "  6   0   1   9 " << endl;

    }

    if ( a == "***********")

    {

        cout << "  1   5   7   9 " << endl;

        cout << "  2" <<"***"<< "6   9   8 " << endl;

        cout << "  7   4   3   0 " << endl;

        cout << "  6   0   1   9 " << endl;

    }

    if ( a == "************")

    {

        cout << "  1   5   7   9 " << endl;

        cout << "  2   6   9" <<"***"<< "k8 " << endl;

        cout << "  7   4   3   0 " << endl;

        cout << "  6   0   1   9 " << endl;

    }

    cout << " Now Choose another Number of star.." << endl;

     string b;

     cin >> b;

     if ( b == "*")

    {

        cout << "  1   5   7   9 " << endl;

        cout << "  2   6   9   8 " << endl;

        cout << "  7" <<"***"<< "4   3   0 " << endl;

        cout << "  6   0   1   9 " << endl;

    }

    if ( b == "**")

    {

        cout << "  1   5   7   9 " << endl;

        cout << "  2   6   9" <<"***"<< "8 " << endl;

        cout << "  7   4   3   0 " << endl;

        cout << "  6   0   1   9 " << endl;

    }

    if ( b == "***")

    {

        cout << "  1" <<"***"<< "5   7   9 " << endl;

        cout << "  2   6   9   8 " << endl;

        cout << "  7   4   3   0 " << endl;

        cout << "  6   0   1   9 " << endl;

    }

    if ( b == "****")

    {

        cout << "  1   5   7   9 " << endl;

        cout << "  2   6   9   8 " << endl;

        cout << "  7   4" <<"***"<< "3   0 " << endl;

        cout << "  6   0   1   9 " << endl;

    }

    if ( b == "*****")

    {

        cout << "  1   5   7   9 " << endl;

        cout << "  2   6" <<"***"<< "9   8 " << endl;

        cout << "  7   4   3   0 " << endl;

        cout << "  6   0   1   9 " << endl;

    }

    if ( b == "******")

    {

        cout << "  1   5   7   9 " << endl;

        cout << "  2   6   9   8 " << endl;

        cout << "  7   4   3   0 " << endl;

        cout << "  6" <<"***"<< "0   1   9 " << endl;

    }

    if ( b == "*******")

    {

        cout << "  1   5   7" <<"***"<< "9 " << endl;

        cout << "  2   6   9   8 " << endl;

        cout << "  7   4   3   0 " << endl;

        cout << "  6   0   1   9 " << endl;

    }

    if ( b == "********")

    {

        cout << "  1   5   7   9 " << endl;

        cout << "  2   6   9   8 " << endl;

        cout << "  7   4   3   0 " << endl;

        cout << "  6   0   1" <<"***"<< "9 " << endl;

    }

    if ( b == "*********")

    {

        cout << "  1   5" <<"***"<< "7   9 " << endl;

        cout << "  2   6   9   8 " << endl;

        cout << "  7   4   3   0 " << endl;

        cout << "  6   0   1   9 " << endl;

    }

    if ( b == "**********")

    {

        cout << "  1   5   7   9 " << endl;

        cout << "  2   6   9   8 " << endl;

        cout << "  7   4   3   0 " << endl;

        cout << "  6   0" <<"***"<< "1   9 " << endl;

    }

    if ( b == "***********")

    {

        cout << "  1   5   7   9 " << endl;

        cout << "  2" <<"***"<< "6   9   8 " << endl;

        cout << "  7   4   3   0 " << endl;

        cout << "  6   0   1   9 " << endl;

    }

    if ( b == "************")

    {

        cout << "  1   5   7   9 " << endl;

        cout << "  2   6   9   8 " << endl;

        cout << "  7   4   3" <<"***"<< "0 " << endl;

        cout << "  6   0   1   9 " << endl;

    }


}


WHAT COUNTRIES WOULD YOU LIKE TO TRAVEL TO ?

Wael ajlouni

HELLO WORLD

#include <iostream>


using namespace std;


int main()

{

 int world ;

 string write ;

 string yesorno;

 string name ;

 cout<<"what is your name"<<endl;

 cin>>name;

cout<<"How many countries would you like to travel to?"<<endl;

cin>> world ;

cout<<"Can you mention some of them to me"<<endl;

cin>>yesorno;

if(yesorno=="yes")

{

    cout<<"Please start"<<endl;

    cin>>write;

    cin>>write;

    cout<<" nice to meet you\n"<<name<<endl;

}

else

{

    cout<<"okay nice to meet you\n"<<name<<endl;

}

cin>>write;

}