Question:What will be printed on the standard output as a result of the following code snippet?
void main() { int num1 = 30, num2 = 4; float result; result = (float)(num1/num2); printf("%.2f", result); return 0; }
A 7
B 7.00
C 7.000000
D 7.5
E 7.50
+ AnswerB
+ Report