Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ConsoleApplication3.cpp : 定義主控台應用程式的進入點。
- //
- #include "stdafx.h"
- #include <iostream>
- #include <stdlib.h>
- using namespace std;
- int main()
- {
- int i = 1,m = 0,n = 0;
- while (1) {
- cin >> m >> n;
- while (i <= m) {
- i += n;
- }
- i -= n;
- cout << endl;
- if (i != m)
- cout << "LOSER";
- if (m == i)
- cout << "VICTORY";
- system("PAUSE");
- system("CLS");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement