SlideShare a Scribd company logo
1 of 9
8. Napiši program koji uglove izražene u sekundama pretvara u sekunde, minute i stepene.
9. Napiši program koji ispisuje manji od dva unesena broja.
#include <iostream>
using namespace std;
int main()
{
int a,b;
cin>>a>>b;
cout<<"manji je "<<min(a,b);
return 0;
}
.
10. U jednoj prodavnici je u toku akcija u kojoj se kupcima koji kupe tri proizvoda nudi da najjeftiniji od ta
tri proizvoda dobiju za jedan dinar. Napiši program koji određuje iznos najjeftinijeg proizvoda i sniženu
cijenu tri proizvoda.
11. Napiši program koji ispisuje veći od dva unesena broja.
#include <iostream>
using namespace std;
int main()
{
int a,b;
cin>>a>>b;
cout<<"veci je "<<max(a,b);
return 0;
}
12. Mama je povela Pericu u radnju da kupi patike. Perici nije skromnost jača strana pa je molio mamu da
mu kupi baš te koje su inače najskuplje od tri para koja je pogledao. Koliko koštaju patike koje su se svidjele
Perici?
13. Na takmičenju u skijaškim skokovima pored udaljenosti koju skakač preskoči ocenjuje se i stil
skakača. Pet sudija ocenjuju stil skakača ocenama od 0 do 20. Zatim se od svih dobijenih ocena izbrišu
jedna najmanja i jedna najveća. Konačna ocena stila skakača računa se kao prosek preostalih ocena.
Napiši program kojim se na osnovu ocena 5 sudija određuje konačna ocena stila skakača.
14. Napisati program koji izbacuje cifru desetica u
unesenom broju n.
TEST PRIMJER:
Ulaz:79645 Izlaz:7965
15. Unosi se rezolucija slike u obliku dva cijela broja koji označavaju broj piksela po širini i visini.
Izračunati rezoluciju slike u megapikselima, ako znamo da megapiksel predstavlja milion piksela.
16. Za uneti celi četvorocifren broj X, treba ispisati drugu po redu cifru
(npr.: za X=1234, rezultat je 2).

More Related Content

Featured

Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Saba Software
 
Introduction to C Programming Language
Introduction to C Programming LanguageIntroduction to C Programming Language
Introduction to C Programming Language
Simplilearn
 

Featured (20)

How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
 
Introduction to C Programming Language
Introduction to C Programming LanguageIntroduction to C Programming Language
Introduction to C Programming Language
 

1. sekcija bez rjesenja

  • 1. 8. Napiši program koji uglove izražene u sekundama pretvara u sekunde, minute i stepene.
  • 2. 9. Napiši program koji ispisuje manji od dva unesena broja. #include <iostream> using namespace std; int main() { int a,b; cin>>a>>b; cout<<"manji je "<<min(a,b); return 0; } .
  • 3. 10. U jednoj prodavnici je u toku akcija u kojoj se kupcima koji kupe tri proizvoda nudi da najjeftiniji od ta tri proizvoda dobiju za jedan dinar. Napiši program koji određuje iznos najjeftinijeg proizvoda i sniženu cijenu tri proizvoda.
  • 4. 11. Napiši program koji ispisuje veći od dva unesena broja. #include <iostream> using namespace std; int main() { int a,b; cin>>a>>b; cout<<"veci je "<<max(a,b); return 0; }
  • 5. 12. Mama je povela Pericu u radnju da kupi patike. Perici nije skromnost jača strana pa je molio mamu da mu kupi baš te koje su inače najskuplje od tri para koja je pogledao. Koliko koštaju patike koje su se svidjele Perici?
  • 6. 13. Na takmičenju u skijaškim skokovima pored udaljenosti koju skakač preskoči ocenjuje se i stil skakača. Pet sudija ocenjuju stil skakača ocenama od 0 do 20. Zatim se od svih dobijenih ocena izbrišu jedna najmanja i jedna najveća. Konačna ocena stila skakača računa se kao prosek preostalih ocena. Napiši program kojim se na osnovu ocena 5 sudija određuje konačna ocena stila skakača.
  • 7. 14. Napisati program koji izbacuje cifru desetica u unesenom broju n. TEST PRIMJER: Ulaz:79645 Izlaz:7965
  • 8. 15. Unosi se rezolucija slike u obliku dva cijela broja koji označavaju broj piksela po širini i visini. Izračunati rezoluciju slike u megapikselima, ako znamo da megapiksel predstavlja milion piksela.
  • 9. 16. Za uneti celi četvorocifren broj X, treba ispisati drugu po redu cifru (npr.: za X=1234, rezultat je 2).