Java
Triangle Filled and Outlined With Star (*) – Java Program
Filled [crayon-5a2bbab059051833810017/] Outlined [crayon-5a2bbab059061681883968/]
Filled [crayon-5a2bbab059051833810017/] Outlined [crayon-5a2bbab059061681883968/]
Unoptimized [crayon-5a2bbab0596fe570278403/] Half Optimized [crayon-5a2bbab059706177931288/] Optimized [crayon-5a2bbab059708582815153/]
Pattern to be drawn [crayon-5a2bbab0599a2596139330/] Output
First Way [crayon-5a2bbab059b79407487780/] Second Way [crayon-5a2bbab059b81784002149/]
Filled Triangle [crayon-5a2bbab059d82959324468/] Output Hollow Triangle [crayon-5a2bbab059d8c273390059/] Output
using While [crayon-5a2bbab059f78025033570/] Recursive [crayon-5a2bbab059f7f304282370/]
What is a nasty number? Well it is a number whose four different factors can be arranged in such a way that sum of two is equal to difference of other two. Take an example of nasty number 36. It have factors 1,2,3,4,6,9,12,18. So, we have 2+1=6-3 . So, it Read more…