Write a program that reads integers from the user and stores them in a list. Use 0 as a sentinal value to mark the end of input
Answers
Answered by
0
Explanation:
There are many languages in which the program can be written. The below program is written in C language, a commonly used language
Program
void main () :
bool done = false
int a[];
int I = 0;
while not done
a[i] = input("enter the character:")
if ( I == "0" ):
done = true;
break
else:
i= I + 1
print( "%i" ,a[] )
return
Similar questions