Cod sursa(job #1185428)
| Utilizator | Data | 15 mai 2014 18:02:31 | |
|---|---|---|---|
| Problema | Factorial | Scor | 0 |
| Compilator | cpp | Status | done |
| Runda | Arhiva de probleme | Marime | 0.2 kb |
#include<iostream>
using namespace std;
int main()
{
int n;
cin >> n;
if (n != 1 && n != 2)
cout << "-1";
else
if (n == 1)
cout << "1 2 3";
else
if (n == 2)
cout << "3 4 5";
}