Search Here

Monday, May 4, 2015

UVa - 12114 ( Bachelor Arithmetic Solution )

Tips : Try Yourself First . For Help Scroll Down.




Code :


#include<bits/stdc++.h>

using namespace std;

int main()
{
    long long int s, b, j=0;
    while(cin>>b>>s && b!=0 && s!=0)
    {
        cout<<"Case "<<++j;
        if(b==0 || b==1)
            cout<<": :-\\"<<endl;
        else if(b<=s)
            cout<<": :-|"<<endl;
        else if(b>s)
            cout<<": :-("<<endl;

    }
    return 0;
}



=> Need Help . Post A Comment.


No comments:

Post a Comment