+ 2

What is wrong with this code?

#include<stdio.h> void main() { int x, z; float y, Rez; x = 7; y = 3.2; z = -1.2*10^-3; Rez = (13*x-y/2+z/101*y)/(y-17*z)+2*z+y/3*z; printf("Rez=%f", Rez); }

7th Jan 2018, 1:10 PM
Danny Makarov
Danny Makarov - avatar
3 Answers
+ 3
z is integer and you pass number to it that is float
7th Jan 2018, 1:25 PM
Vukan
Vukan - avatar
+ 3
wow 👍👏👏@Gordie
7th Jan 2018, 2:18 PM
Hack Erer
Hack Erer - avatar