Program1.c
unknown
c_cpp
2 years ago
385 B
14
Indexable
#include <stdio.h>
int main()
{
int sum = 0;
while (1)
{
int input;
printf("Enter A Number \n");
scanf("%d", &input);
if (input > 9 && input <= 99)
{
continue;
}
sum += input;
if (input == -1)
break;
}
printf("The Result Is %d", sum);
return 0;
}Editor is loading...
Leave a Comment