Advertisement
Guest User

Untitled

a guest
Nov 20th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6.  
  7.  
  8. float x;
  9.  
  10. printf("Podaj x: ");
  11. scanf("%f", &x);
  12.  
  13. printf("\nX wynosi : %f", x);
  14. printf("\n");
  15. printf("\n");
  16.  
  17. if ( x <= 1 && x>= 0)
  18. {
  19. printf("dobrze");
  20.  
  21. }
  22. else{
  23. printf("Podana liczba nie spelnia warunkow zadania.");
  24. }
  25.  
  26.  
  27.  
  28.  
  29.  
  30. // printf("Hello world!\n");
  31. return 0;
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement