View Code of Problem 13

#include<iostream>
using namespace std;
int main(){
	

	int h,a,b,k;
	int turn=1;
	while(cin>>h>>a>>b>>k){
		
		if(a>=h){
			cout<<"Case#"<<turn<<"White win";
			turn++;
		}
		else{
			if(a*k>(k+1)*b){
				cout<<"Case#"<<turn<<"White win";
				turn++;
			}
			else{
				cout<<"Case#"<<turn<<"Unknow";
				turn++;
			}
		}
		cout<<"\n"
	}
}
/*
Main.cc: In function 'int main()':
Main.cc:25:2: error: expected ';' before '}' token
  }
  ^
*/

Double click to view unformatted code.


Back to problem 13