Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main() {
- int min, pocet = 0, vstup = -1;
- while(vstup != 0){
- scanf(" %d", &vstup);
- if(vstup >= 3 && vstup <= 10){
- pocet++;
- }
- if(vstup < min){
- min = 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