₦airaland Forum

Welcome, Guest: Register • Login • With Google • Trending • Recent • New

Stats: 3,344,678 members, 8,513,125 topics. Date: Wednesday, 04 November 2026 at 01:15 PM

Toggle theme

Why Is This Simple Code In C Not Running Till The End? - Programming - Nairaland

Nairaland Forum › Science/Technology › Programming › Why Is This Simple Code In C Not Running Till The End? (722 Views)

1 Reply (Go Down)

Why Is This Simple Code In C Not Running Till The End? by AntiSimp(op):
I recently started learning how to code using C
.
This code is an assignment for me,
When I run the code, it executes but stops at line 18..
.
The printf function from line 23 downward does not execute, which are the main solution..
.
And I don't see any issue anywhere. I've been on it since last night and it's bothering me.
.
Abeg someone should help me out and tell me why only the first 18lines will execute.
You can input any value for the variable asked to run the code.
Thansk

Re: Why Is This Simple Code In C Not Running Till The End? by codeigniter(m): 12:16pm On Sep 04, 2021
AntiSimp:
I recently started learning how to code using C
.
This code is an assignment for me,
When I run the code, it executes but stops at line 18..
.
The printf function from line 23 downward does not execute, which are the main solution..
.
And I don't see any issue anywhere. I've been on it since last night and it's bothering me.
.
Abeg someone should help me out and tell me why only the first 18lines will execute.
You can input any value for the variable asked to run the code.
Thansk
Why isn't d no_oftranz on line 18 a reference as well with &.

Next time

Post full codes
Re: Why Is This Simple Code In C Not Running Till The End? by AntiSimp(op): 12:23pm On Sep 04, 2021
codeigniter:
Why isn't d no_oftranz on line 18 a reference as well with &.

Next time

Post full codes
Its the full code i wrote that I posted, from the assignment instruction.

Geez! Thank you very much...how did my eyes omit that "&"..dint even realise anything was missing since last night.
.
Thank you. I just added it now and every line was executed...chai ..I need glass
Re: Why Is This Simple Code In C Not Running Till The End? by codeigniter(m): 12:44pm On Sep 04, 2021
AntiSimp:
Its the full code i wrote that I posted, from the assignment instruction.

Geez! Thank you very much...how did my eyes omit that "&"..dint even realise anything was missing since last night.
.
Thank you. I just added it now and every line was executed...chai ..I need glass
No one is immune to mistake, especially as the source code grows. You are welcome!
Re: Why Is This Simple Code In C Not Running Till The End? by parkervero(m):
AntiSimp:
I recently started learning how to code using C
.
This code is an assignment for me,
When I run the code, it executes but stops at line 18..
.
The printf function from line 23 downward does not execute, which are the main solution..
.
And I don't see any issue anywhere. I've been on it since last night and it's bothering me.
.
Abeg someone should help me out and tell me why only the first 18lines will execute.
You can input any value for the variable asked to run the code.
Thansk
...
Re: Why Is This Simple Code In C Not Running Till The End? by sirwilson(m): 5:47am On Sep 08, 2021
Good morning, pls what is the name of the app u are using?
Re: Why Is This Simple Code In C Not Running Till The End? by AntiSimp(op): 6:52pm On Sep 09, 2021
sirwilson:
Good morning, pls what is the name of the app u are using?
Vscode...
1 Reply

Learn How To Code In Ibadan • Please Help Me Solve This Problem In C++ • Please,Help Explain This Code In C • 2 • 3 • 4

Kindly Review This Marketplace And Forum • Please Checkout My Portfolio • Trust Wallet Error When Transfering Funds