Онлайн компилятор C

#include <stdio.h> int main() { int x, y, i; scanf("%d %d", &x, &y); i = x; while(i <= y){ printf("%d", i*i); i++; } return 0; }
This program reads two integers x and y, then prints the squares of all integers from x up to y in a single line without spaces between them.

- The loop condition `i <= y` will cause an infinite loop if x is greater than y, because i starts at x and increases, but never becomes less than or equal to y.
- The output prints squares directly next to each other (e.g., "14916") which may not be the intended format; consider adding a space or newline after each square.