🚀 Hurry! Offer Ends In
00 Days
00 Hours
00 Mins
00 Secs
Enroll Now
X

नीचे दिए गए function का output क्या होगा?

What will be the output of the following function?


def C2F(c):
    return c*9/5+32
print(C2F(100))
print(C2F(0))

A
212, 32
B
212.0, 32.0
C
100, 0
D
Error
Explanation


The function converts Celsius to Fahrenheit using the formula:
F = (C × 9/5) + 32

C2F(100) → (100 × 9/5) + 32 = 180 + 32 = 212.0  
C2F(0)   → (0 × 9/5) + 32   = 0 + 32   = 32.0

हिंदी:
यह function Celsius को Fahrenheit में बदलता है:
फार्मूला है → (C × 9/5) + 32

C2F(100) = 212.0  
C2F(0)   = 32.0
✅ Output: 212.0, 32.0

Correct Answer: B) 212.0, 32.0

Latest Updates