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