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); }
-
Featured Topics
-
Topics
-
f23948 ·
Posted in Programs, Apps and Websites0 -
0
-
0
-
0
-
Aleph256 ·
Posted in Storage Devices0 -
15
-
Bonznumber1 ·
Posted in Windows0 -
0
-
aqarwaen29 ·
Posted in CPUs, Motherboards, and Memory5 -
17
-
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