Hello Devs,
In this tutorial, we are going to see C program to print numbers from 1 to 100.
Addition.c
#include<stdio.h>
int main(){
int num = 1;
print(num);
return 0;
}
int print(num){
if(num<=100){
printf("%d ",num);
print(num+1);
}
}
I hope this example helps you.