C programming help
By
Rheostat.
in Programming
in Programming
Go to solution
Solved by Ominous,
#include <stdio.h> int main(void) { int numbers[5]; int i; for(i = 0; i <= 4; i++) { printf("Enter number: "); scanf("%d", &numbers[i]); } for(i = 0; i <= 4; i++) { printf("%d\n", numbers[i]); if (numbers[i] == 0) break; // add this line } return(0); }
-
Topics
-
0
-
0
-
damian61 ·
Posted in Troubleshooting0 -
0
-
kofman13 ·
Posted in Linux, macOS and Everything Not-Windows2 -
Gabefair ·
Posted in General Discussion3 -
Jeeperforlife ·
Posted in New Builds and Planning6 -
0
-
0
-
darkwolfotf ·
Posted in Audio0
-
-
play_circle_filled
Latest From ShortCircuit:
If you can only get one computer, get this one. - ASUS ROG G14 (2024)
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now