I need help on how to write a program to determine and print the smallest and largest values contained in 99-element floating-point array w.
This is what I have thus far:
#include <stdio.h>
int main()
{
int num1, num2;
printf("Smallest number\n");
printf("Enter Largest number\n");
scanf("%d%d", &num1, &num2 );
if( num 1 is < than num2)
printf( "%d is Smaller than %d\n", num1. num2);
if(num 2 is > than num1)
printf("%d is larger than %d\n", num1, num2);