Sorting 3 numbers by ascending orders in c

#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include "stdafx.h"


int main()
{
	int num1, num2, num3, temp;
	printf("Enter 3 numbers: ");
	scanf("%d%d%d", &num1, &num2, &num3);
	// Arrange the 3 numbers that were entered in ascending order num3 < num2 < num1 
	if (num1 <= num3) {
		temp = num3;
		num3 = num1;
		num1 = temp;
	}
	if (num1 <= num2) {
		temp = num2;
		num2 = num1;
		num1 = temp;
	}
	if (num2 <= num3) {
		temp = num2;
		num2 = num3;
		num3 = temp;
	}
	if ((num3 *num2) == num1) {
		printf("Yes - next: %d \n", num2*num1);
	}
	else
	{
		printf("No \n");
	}
	return 0;
}