This is an old revision of the document!
Laboratorium: Funkcje
#include <stdio.h> int main() { double a, b, c; printf("Podaj trzy liczby: "); scanf("%lf %lf %lf", &a, &b, &c); if (a > 0 && b > 0 && c > 0) { printf("Trzy dodatnie!\n"); } else if ((a > 0 && b > 0 && c <= 0) || (a > 0 && b <= 0 && c > 0) || (a <= 0 && b > 0 && c > 0)) { printf("Dwie dodatnie!\n"); } else { printf("Nic :(\n"); } return 0; }