// kukui.cpp : Defines the entry point for the console application. // #include "stdafx.h" int _tmain(int argc, _TCHAR* argv[]) { printf("podaj liczbe 1\n"); float l1; scanf("%f", &l1); printf("podaj liczbe 2\n"); float l2; scanf("%f", &l2); printf("podaj liczbe 3\n"); float l3; scanf("%f", &l3); float srodk; if(((l1 > l2) && (l2 > l3)) || ((l3 > l2) && (l2 > l1))) { srodk = l2; } else if(((l1 > l3) && (l3 > l2)) || ((l2 > l3) && (l3 > l1))) { srodk = l3; } else if(((l3 > l1) && (l1 > l2)) || ((l2 > l1) && (l1 > l3))) { srodk = l1; } printf("druga liczba to %f\n", srodk); return 0; }