C Language while loop "Print 1-3 9-16.....81-100" program with output

 #include <stdio.h>

int main() { int start = 1; while (start <= 100) { printf("%d-", start); if (start == 1) { start = 3; } else { start = start * start; } if (start <= 100) { printf("%d ", start); } } return 0; }


Output:
1-3 9-16 81-100

Comments

Popular posts from this blog

Video Formats

Where video editing is used

File saving and folder management