+ 3
how to find smallest and largest number in C not C++
Write a program that reads in five integers and then determines and prints the largest and the smallest integers in the group.
8 Answers
+ 11
you can try to put entered numbers in array and try then to find min and max of array
+ 4
#include<stdio.h>
int main()
{
           int a, b;
           printf("Enter two numbers");
           scanf("%d %d", &a, &b);
           if(a>b)
                 printf("a is max");
           else 
                 printf("b is max");
           return 0;
}
+ 3
let me create a code
+ 2
and what about 5 integers..
+ 2
this is the solution
0
you could sort them and take the two ends







