Hi,
I have a program to do
read numbers until negative number read
I wan to modify this program and wanted to print biggest and smallest number entered.Code:include <stdio.h> void main () { int numbers printf ("Type a number:") scanf ("%d", &number) if (number < 0) // check whether the number is a negative number printf ("Value is %d \n", number) }
Say
if (ngative)
stop
print(biggest value)
print(smallest value)
end
anybody can help me
Thanks in advanced



LinkBack URL
About LinkBacks



