C programing question


#1

write a C program to print first 100 numbers without using goto,loops


#2

#include <stdio.h>

void printNumber(int N);

int main(){
int N;
printf(“Enter a number\n”);
scanf("%d", &N);

printNumber(N);

return 0;

}

void printNumber(int N){
if(N >= 1){
printNumber(N-1);
printf("%d ", N);
}
}