"Rewrite numbers from input to output. Stop processing input after reading in the number 42. All numbers at the input are integers of one or two digits."
#include <stdio.h>
int main() {
    int num ;
    int repeat()
    {  
        scanf("%d",&num) ;
        if(num!=42)
        {
             printf("\n%d",num) ;
             repeat() ;
        }
        else
        {
            return num ;
        }
        getch() ;
    }
    return 0;
}
 
     
     
    