Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdbool.h>
- #include <math.h>
- #include <conio.h>
- int main () {
- NULL;
- /*int liczba, i, trojka1=0, trojka2=0, trojka3=0;
- printf("Podaj liczby, zero konczy pobieranie: ");
- while(liczba!=0) {
- printf("Podaj liczbe: ");
- scanf("%d", liczba);
- trojka1=trojka2;
- trojka2=
- trojka3=liczba;
- if (trojka1!=trojka2 && trojka1!=trojka3 && trojka2!=trojka3) {
- }
- }*/
- bool CzyTrojkiRozne (int trojka1, int trojka2, int trojka3) {
- if (trojka1!=trojka2 && trojka1!=trojka3 && trojka2!=trojka3) {
- return true;
- }
- return false;
- }
- void WypiszZawartoscTrzech (int trojka1, int trojka2, int trojka3) {
- printf("(%d, %d, %d)", trojka1, trojka2, trojka3);
- }
- getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement