Write a program that will read 20 float values in a one dimensional array
and find out the following:
(i) Number of values greater than zero.
(ii) Number of values equal to zero.
(iii) Number of values less than zero
Answers
Answered by
5
Explanation:
Void main()
{ Float a[20];
Int I,j,k,l;
Clrscr();
For (I=0;I<=19;I++)
{
Printf(" enter value- ");
Scanf("%f".&a[I]);
If(a[I]>=0)
{Printf (" the value is less than 0");
Similar questions