Hello I can run the program but the problem is that I want it to end it when I type the correct number(so ">0") but it doesnīt work and well I donīt know why.
Code:
#include <stdio.h>#include <stdlib.h>
void converttokoruna(float euro);
float euro;
int main()
{
float koruna= 0;
do{
scanf("%f", &koruna);
converttokoruna(koruna);
}while(euro = !0);
return 0;
}
void converttokoruna(float euro){
float koruna = euro * 24.79;
if(euro > 0)
{
printf("%.2f Eur - %.2f Korun\n", euro, koruna);
}
else
{
printf("False number ! Write number again\n");
}
return;
}