c Program to print 1 to 100 without using loop

c Program to print 1 to 100 without using loop


#include

int main(){
int i= 1;

print(i);

return 0;
}
int print(i){
if(i<=100){
printf("%d ",i);
print(i+1);
}
}




No comments:

Post a Comment