public class Exam {
void printNos(int n)
{
if(n > 0)
{
printNos(n-1);
System.out.println(n);
}
}
public static void main(String[] args) {
Exam x=new Exam();
x.printNos(100);
}
}
void printNos(int n)
{
if(n > 0)
{
printNos(n-1);
System.out.println(n);
}
}
public static void main(String[] args) {
Exam x=new Exam();
x.printNos(100);
}
}