+ 1

Noobie, why isnt this working?

Hey, i'm new and just experimenting with scan f and making equations. (C coding) Can someone explain why this doesnt work? I'm getting an output of 0.

17th Jul 2019, 11:12 PM
Jarvis
Jarvis - avatar
4 Respuestas
+ 5
You are calculating vent =a*b; Before getting input for a and b. Now try to get input before calculation
18th Jul 2019, 12:01 AM
🇮🇳Omkar🕉
🇮🇳Omkar🕉 - avatar
+ 4
Extending Omkar's answer - Just swap line 5 and 6 in your code.
18th Jul 2019, 1:05 AM
Hatsy Rei
Hatsy Rei - avatar
0
You guys are the best, that makes a lot more sense. Thank you!
23rd Jul 2019, 10:47 PM
Jarvis
Jarvis - avatar