Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- int a;
- float b;
- cout<<"Podaj liczbę1: ";
- cin>>a;
- cout<<"Podaj liczbe2; ";
- cin>>b;
- if(b==0){
- cout<<"nie mozna dzielic przez 0"<<endl;
- }else {
- float c=float(a)/b;
- cout<<"Wynik to: "<<c<<endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement