Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ConsoleApplication5.cpp : Defines the entry point for the console application.
- //
- #include "stdafx.h"
- #include <conio.h>
- #include <iostream>
- using namespace std;
- int main()
- {
- string pin;
- printf("Witaj w naszym banku!\n");
- printf("Podaj numer PIN: ");
- scanf("%s", &pin);
- if (pin=="1729")
- {
- printf("Poprawny PIN\n");
- }
- else
- {
- printf("Niepoprawny PIN\n");
- }
- _getch();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment