+ 2
Write program to generate the sequence 1 4 9 16 25 36 49 64 81 100
Need hels sir/madam
3 Answers
+ 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);Â Â Â Â Â
 } Â
}Â Â
}Â Â