[MERGED] Writing program for NaN condition

This topic has been merged into Writing program for NaN condition.