- Back to Home »
- GENERAL OR BASIC PROGRAMS »
- C Program to print 1 to 100 without using loop
Posted by : ANIMESH SHAW
Wednesday, 4 January 2012
#include<stdio.h>
int main(){
int i= 1;
print(i);
return 0;
}
int print(i){
if(i<=100){
printf("%d ",i);
print(i+1);
}
}

Post a Comment