Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<stdio.h>
- #define MIN(h,g) (((h)<(g)) ? h:g)
- using namespace std;
- int main(){
- int w;
- int neamt,suceava;
- int judet;
- int Cluj, Alba;
- cout<<"Introduceti judetul: ";
- cin>>judet;
- if(judet=neamt)
- {
- Cluj=200;
- Alba=300;
- }
- if(judet=suceava)
- {
- Cluj=400;
- Alba=500;
- }
- w= MIN(Cluj,Alba);
- cout<<"\nCea mai apropiata reprezentanta se afla la "<<w<<" km de dvs.";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement