+ 2
Write program to generate the sequence 1 4 9 16 25 36 49 64 81 100
Need hels sir/madam
3 Respuestas
+ 19
for (int a=1;a <=10;a++)
  System.out.print(a*a+" ");   //n^2
+ 6
Here's another way in Python:
For y in range(11):
      print(y * y)
+ 1
public class ForEachExample {  
    public static void main(String[] args) {     
    int arr[]={12,23,44,56,78};     
    for(int i:arr){          
    System.out.println(i);     
 }  
}  
}  



