#C 42 bytes (w/single char return)
#include<stdio.h>
main(){printf("%9x",0);}
In this case, the printf is looping and printing up to 9 spaces to pad my hex output number 0. It is executing code (printing a space unless the output is filled) and looping (8 times in this case) without the usual loops. Tested on https://www.codechef.com/ide