How would code this if stament - maybe

Hi,

I am working with a dht11, A-uno, Arduino Ide…

All I wil have it to do, are to blink. After this specielt pattern.

blink:
1 time = 1second pr 10 degree

interval:
fast blinking for every
1 time =½ seconnd pr 1 degree

So I can count the temperature like

23 degree - will blink 2 times long and 3 fast blink

Any suggestion - if statement or switch case or ???

  float humidity = dht.getHumidity();
  float temperature = dht.getTemperature();
int x = temperature;
Serial.print(x);
if ((x >= 10) && (x <=19))
{
digitalWrite(13, 1);
delay(1000);
digitalWrite(13, 0);
  }

  if ((x >= 20) && (x <=29))
{
digitalWrite(13, 1);
delay(1000);
digitalWrite(13, 0);
delay(500);
digitalWrite(13, 1);
delay(1000);
digitalWrite(13, 0);
  }
        for (int i = 0; i < x / 10; i++) {
		digitalWrite(13, 1);
		delay(1000);
		digitalWrite(13, 0);
		delay(1000);
	}
	for (int i = 0; i < x % 10; i++) {
		digitalWrite(13, 1);
		delay(500);
		digitalWrite(13, 0);
		delay(1000);
	}

Thank you...

It was the for loop...

I thought it maybe schould had to be put in a function.