what will be printed from the following a) x=12 while (x >7) { printf("%d ", x); x--; { b) for (int x=12; x>7;x--) printf(" %d ",x); c) x=12 do { printf("%d ",x); x--; } while (x>7); d) the same questions above but with the (less than sign <insted of the bigger than sign >) will rate lifesaver thank u what will be printed from the following a) x=12 while (x >7) { printf("%d ", x); x--; { b) for (int x=12; x>7;x--) printf(" %d ",x); c) x=12 do { printf("%d ",x); x--; } while (x>7); d) the same questions above but with the (less than sign <insted of the bigger than sign >) will rate lifesaver thank u
Explanation / Answer
a) 12 11 10 9 8 b) same c)same with < a)nothing b)nothing c)12