Advertisement
Rayne_47

C zajecia 9 zadanie 2 (do wyslania)

Apr 24th, 2014
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.71 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdbool.h>
  3. #include <math.h>
  4. #include <conio.h>
  5.  
  6. int main () {
  7. NULL;
  8. /*int liczba, i, trojka1=0, trojka2=0, trojka3=0;
  9.  
  10. printf("Podaj liczby, zero konczy pobieranie: ");
  11. while(liczba!=0) {
  12.     printf("Podaj liczbe: ");
  13.     scanf("%d", liczba);
  14.     trojka1=trojka2;
  15.     trojka2=
  16.     trojka3=liczba;
  17.     if (trojka1!=trojka2 && trojka1!=trojka3 && trojka2!=trojka3) {
  18.        
  19.     }
  20. }*/
  21.  
  22. bool CzyTrojkiRozne (int trojka1, int trojka2, int trojka3) {
  23.     if (trojka1!=trojka2 && trojka1!=trojka3 && trojka2!=trojka3) {
  24.         return true;
  25.     }
  26.     return false;
  27. }
  28.  
  29. void WypiszZawartoscTrzech (int trojka1, int trojka2, int trojka3) {
  30.     printf("(%d, %d, %d)", trojka1, trojka2, trojka3);
  31. }
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39. getch();
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement