error

Hi

When is our homework due?

It's weird because VarConst is not initialized (seeing the name, I guess it's a constant value) but is used in calculations, and the result of these (called VarResult) is not used, neither returned by the function.

So you miss the VarConst initialization and the 'return' lines should be 'return VarResult;'

But any other guess might be as correct as this one...

this is a subroutine which is faulty and from my knowledge of c language i do not knwo whether i am in the right direction or not

VarResult is not used.

VarConst can be almost anything.

Why ? ? ? :’(

kzaki786: this is a subroutine which is faulty and from my knowledge of c language i do not knwo whether i am in the right direction or not

General help for such problems: Step 1 - find out what it is supposed to do. Step 2 - find out what it actually does. Step 3 - tell us the results of your investigations

Steve

right

would apriciate a hand on the same set of code if thats alright?

llamagoose:
would apriciate a hand on the same set of code if thats alright?

Please start your own thread.

Use CTRL T to format your code.
Attach your complete sketch between code tags
[code]Paste your sketch here[/code]

Tell us what is not working and/or what you are having trouble with.

Show us a good schematic & image of your circuit wiring.
Posting images:

Maybe try reapplying the lipstick :wink: