➤ Problem Link : TEST
👉 Hint : edit please
✅ C++ Solution :
 
#include <stdio.h>
int main() {
  int n,i=1;
  while(i>0) {
    scanf("%d",&n);
    if (n == 42)
    break;
    printf("%d\n",n);
    i++;
  }
  return 0;
}
Thank you for your patience reading. If you enjoyed this post, I’d be very grateful if you’d help it spread by emailing it to a friend, or sharing it on Whatsapp or Facebook.
😇Happy Learning!!
