Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int num, x;
- cout<<"--------------------"<<endl;
- cout<<" Ilosc mnozen " <<endl;
- cout<<"--------------------"<<endl;
- cout<<"Milosz Skarzynski"<<endl;
- cout<< ""<<endl;
- cout<<"Podaj ilosc liczb: ";
- cin>>num;
- if(num<1) cout<<"Ilosc liczb musi byc wieksza niz jeden";
- else {
- x=(num*num)-num;
- cout<<"Ilosc mnozen kazdy z kazdym: " << x;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment