Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. Zad
- #include<iostream>
- using namespace std;
- int main(){
- int i;
- cout<<" ";
- cin>>i;
- if(i>1){
- cout<<"10";
- }
- else
- 1==1*8;
- return 0;
- }
- ---------------------------------------------
- 2. Zad
- #include<iostream>
- using namespace std;
- int main(){
- int a;
- int b;
- int y;
- cout<<" ";
- cin>>a;
- cout<<" ";
- cin>>b;
- if(b==0){
- cout<<" ";
- }
- else{
- y=a/b;
- cout<<y;
- }
- return 0;
- }
- ---------------------------------------------------
- 3. Zad
- #include<iostream>
- using namespace std;
- int main(){
- float d1;
- cout<<" "<<endl<<" "<<endl;
- cout<<" ";
- cin>>d1;
- cout<<" "<<d1*2.54;
- return 0;
- }
- --------------------------------------------
- 4. Zad
- #include<iostream>
- using namespace std;
- int main(){
- float d1;
- cout<<" "<<endl;
- cout<<" ";
- cin>>d1;
- cout<<" "<<d1*3.89;
- return 0;
- }
- ---------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement