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