View Code of Problem 2849

#include<cstdio>
#include<algorithm>
#include<iostream>
#include<string.h>
using namespace std;

int main(void){
	int n;
    while(cin >> n && n != 0){
       if(n % 2) 
	   	cout << n - 1 << endl;
       else 
	   	cout << "No Solution!" << endl;
    }    
}

Double click to view unformatted code.


Back to problem 2849