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
-
alehop ·
Posted in Servers, NAS, and Home Lab0 -
0
-
IDuki ·
Posted in New Builds and Planning0 -
lumooo ·
Posted in General Discussion2 -
2
-
0
-
0
-
EnricoJ ·
Posted in Peripherals0 -
0
-
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