JazzyQuokka
JazzyQuokka
20mo
by
Student

Beginner here, just a doubt

Why does this program doesn't run , what's the fault , please suggest the correction as well The one which I have created a function Void greet() I'm trying to run it in int main but It doesn't,
The if statement doesn't seem to work

Post image
20mo ago
SleepyKoala
SleepyKoala

Looks like there is a space in your input, kindly trim that

JazzyQuokka
JazzyQuokka
Student
20mo

Yeah but there is one more thing, just one little thing

SleepyKoala
SleepyKoala

With space it won't work at all. Please tell the other thing.

JazzyQuokka
JazzyQuokka
Student
20mo

I found the error guys it's quite minute but if you want to try then you can

SillyPenguin
SillyPenguin

Scanf, who uses \n in it 🤦🏻‍♂️

JazzyQuokka
JazzyQuokka
Student
20mo

Me

Discover more
Curated from across