Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- #include <ctime>
- using namespace std;
- int main()
- {
- int a,b=0, i;
- char imie [12];
- {
- cout<<"Podaj swoje imie "<<endl;
- cin<<imie;
- cout<<imie<< "Podaj liczbe od 1 do 3"<<endl;
- cin<<a;
- if (a>3) /* JAK KURWA ZROBIC LUP?(a<1)*/ cout<<"Niepoprawna liczba"<<endl;
- else b=b+a
- cout<<"Liczba podana przez "<<imie<<"to"<<b<<endl;
- system ("pause");
- return 0;
- }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement