public class Example{
public static void main(String args[ ]){
int a[ ];
a=new int[10];
for(int i=0;i<10;i++){
a[i]=i+1;
}
for(int i=0;i<10;i++){
System.out.println(a[i]);
}
}
}
public class Example{
public static void main(String args[ ]){
int a[ ];
a=new int[10];
for(int i=0;i<10;i++){
a[i]=i+1;
}
for(int i=0;i<10;i++){
System.out.println(a[i]);
}
}
}