Why this will give "Hi" as an output? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why this will give "Hi" as an output?

#include <stdio.h> int main() { float a =0.7; if(0.7>a){ printf ("Hi"); } else{ printf ("Hello"); } return 0; }

30th Mar 2020, 5:31 AM
Ravishan Fernando
Ravishan Fernando - avatar
1 Answer