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
-
1
-
0
-
gentlemanspot ·
Posted in Console Gaming0 -
0
-
0
-
6
-
Idkwhattodowithmylife ·
Posted in Graphics Cards4 -
4eyeguy ·
Posted in New Builds and Planning4 -
Gin N Rum 5454 ·
Posted in Programs, Apps and Websites3
-
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