max min int c code example
Example 1: max size for int c
-2,147,483,648 to 2,147,483,647
Example 2: max number in c
#include <stdio.h>
#include <stdlib.h>
int main()
{
double num1,num2,maxNum,minNum;
printf("Enter a number: ");
scanf("%lf", &num1);
printf("Enter another number: ");
scanf("%lf", &num2);
printf("\n");
if (num1 > num2){
maxNum = num1;
minNum = num2;
printf("The largest number is %f \n",maxNum);
printf("The smallest number is %f \n",minNum);
}else if (num1 < num2){
maxNum = num2;
minNum = num1;
printf("The largest number is %f \n",maxNum);
printf("The smallest number is %f \n",minNum);
}printf("The numbers are equal");
return 0;
}