0

Pls find the bug in my code

#include <stdio.h> int main() { int a = 15,b = 2; float quotient; quotient=(float)a/b; printf("the result is %f\n",qoutient); } https://sololearn.com/compiler-playground/c655RllhK9Qz/?ref=app

8th Sep 2024, 6:27 AM
Dayya
Dayya - avatar
2 Antworten
+ 3
Dayya , have a closer look to the spelling of the variable nane in the output line.
8th Sep 2024, 6:35 AM
Lothar
Lothar - avatar
+ 1
Line 7: variable name is quotient Line 8: Wrong variable name "quotient"
8th Sep 2024, 4:23 PM
Alhaaz
Alhaaz - avatar