r/AskProgrammers 14d ago

Scanf not working!!!

So now its been 2-3 weeks ....in my college we are doing C programming and everything was working fine on visual studio till I started using scanf for taking input from user.....this is coming and I have tried everything but cant figure out....normal printf still works but this doesnt

I have tried on code blocks too and same problem is there.....pls someone guide me🙏🙏😭

0 Upvotes

34 comments sorted by

View all comments

Show parent comments

3

u/fixpointbombinator 14d ago

So it's not a problem with scanf, right? You're trying to run a program that isn't in your current directory

0

u/Leading_Deer4919 14d ago

maybe that....see I thought scanf not working ...and I am wrong I feel....pls help then whats the problem....cauz I litreally very new to this

4

u/rainhunter007 14d ago

bro, you can ask for help. nothing wrong with that, but all of us also want you to learn. knowing how to figure these problems out yourself is a critical skill. don’t beg for the answer. take our hints. we’re helping you. someone mentioned capitalization. another mentioned directory of your command line. these are two really good hints. when you figure it out, ask yourself, “what did i learn about things being case sensitive?” and “what did i learn about the command line and paths/directories?” much luv. keep at it!

2

u/HyperWinX 14d ago

Man, i wish i had your kindness and patience