Why 153 is not printing even when it is an Armstrong number??
This is a code to print Armstrong number. But the number 153 is not printing in VS code but it is working fine in other code editors. #include <stdio.h> #include <math.h> void main() { int num, originalNum, remainder, counter=0, result=0; printf("Armstrong number between 1 to 1000:\n"); for(num = 1; num <=1000; num++) { originalNum = num; while(originalNum != 0) { originalNum = originalNum/10; counter++; } originalNum = num; while(originalNum != 0) { remainder = originalNum % 10; result = result + pow(remainder,counter); originalNum = originalNum / 10; } if(result == num) { printf("%d\n",num); } result = 0; counter = 0; } } Please tell how to fix this issue?