#include <stdio.h> int main() { int num; printf("Enter numbers (enter -1 to stop):\n"); scanf("%d", &num); while (num != -1) { printf("You entered: %d\n", num); scanf("%d", &num); } return 0; }