Advertisement
Guest User

Untitled

a guest
Jun 19th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6. int a,b,c;
  7.  
  8. printf("Podaj temperature: ");
  9. scanf("%i", &a);
  10. printf("Podaj wskaznik terroryzmu (w skali od 0 do 10): ");
  11. scanf("%f", &b);
  12. printf("Podaj predkosc internetu w KBps (gdzie najnizsza wartosc zanotowana w kraju to 773.93 a najwyzsza 28553): ");
  13. scanf("%f", &c);
  14. if (a>14 && a<26)
  15. printf("temperatura idealna do zycia\n", a);
  16. else if (a<=14)
  17. printf("za niska temperatura\n", a);
  18. else if (a>=26)
  19. printf("za wysoka temperatura\n", a);
  20. if (b>0 && b<3)
  21. printf("Kraj z małym ryzykiem ataku terrorystycznego\n", b);
  22. else if (b>4 && b<6)
  23. printf("Kraj ze srednim ryzykiem ataku terrorystycznego\n", b);
  24. else if (b>7)
  25. printf("Kraj z wysokim ryzykiem ataku terrorystycznego\n", b);
  26. else if (b<0)
  27. printf("systacja nie mozliwa\n", b);
  28. if (c>0 && b<14276)
  29. printf("wolna predkosc internetu\n", a);
  30. else if (c>=14276)
  31. printf("szybka predkosc internetu\n", a);
  32. else if (c<0)
  33. printf("systacja nie mozliwa\n", c);
  34.  
  35. if (a>14 && a<26 && b>=0 && b<=3 && c>=14276 )
  36. printf("swietna sytuacja w kraju, obywatelom zyje sie zapewne bardzo dobrze\n", a, b,c);
  37.  
  38.  
  39.  
  40. return 0;
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement