Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main() {
- int min, pocet = 0, vstup;
- scanf(" %d", &vstup);
- while(vstup != 0){
- if(vstup >= 3 && vstup <= 10){
- pocet++;
- }
- if(vstup < min){
- min = vstup;
- }
- scanf(" %d", &vstup);
- }
- printf("Pocet hodnot medzi 3 az 10 vratane.. je : %d\n", pocet);
- printf("Najmensie cislo je %d\n", min);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement