I still can't fix it :/
Type: Posts; User: krendo01
I still can't fix it :/
Can anyone please tell me why my loop won't break out when I enter -1??? And how I can fix it?? :confused: Thanks!
#include <stdio.h>
#define SIZE 35
int main (void)
{
int nums[SIZE]={0};
int...
#include <stdio.h>
#define SIZE 35
int main (void)
{
int nums[SIZE]={0};
int count=1;
int i=0;
while (nums[i] != -1)
{
Sorry, I meant it starts at "enter test score 1, then 0" and doesn't change from 0.. help?
int main (void)
{
int nums[SIZE]={1};
int count=0;
int i=0;
int tests;
while (nums[i] >= 0)
{
printf("Enter test score %d: ", nums[i]);
I'm sorry, size change to what?
I'm supposed to write a program that prompts for and reads in test scores with integer values between 0 and 100 and enter no more than 35 test scores. Use a preprocessor directive to define this...
Write a program that prompts for and reads in test scores. You may assume that valid test scores will be integer values between 0 and 100. You may also assume that the user will not enter more than...