Write a program that displays "Ellie is very smart" 5 times. Each time, on a new line.
Example output:
Ellie is very smart
Ellie is very smart
Ellie is very smart
Ellie is very smart
Ellie is very smart
Kind words for the teacher
- 1
Locked
Comments (29)
- Popular
- New
- Old
You must be signed in to leave a comment
Nandhini S
yesterday, 09:07
for(int i=1;i<=5;i++)
{
System.out.println("Ellie is very smart");
}
0
Anonymous #11327312
17 April, 23:53
for (int i = 0; i <5 ; i++) {
System.out.println("Ellit is very smart");
}
0
Hariharan Ganesan
20 January, 08:49
Stream.generate(() -> "Hello").limit(5).forEach(System.out::println);
+1
kyle dula
9 January, 05:31
for(int i = 0; i<=5; i++){
System.out.println("Ellie is very smart");
}
+1
Hasan Özyer
9 May, 09:01
This would cause the program to print out the ellie 6 times, because you are starting from 0 and counting to 5.
+1
噢噢
1 January, 10:56
for(i=0;i<=4;i++){
System.out.println("Ellie is very smart");
}
+2
SATISH SHARMA
28 December 2022, 09:01
for(int i=0; i<=4; i++){
System.out.println("Ellie is very smart");
}
0
Anonymous #11226929
22 December 2022, 11:02
for(int i=1; i<=5; i++){
System.out.println("Ellie is very smart");
}
0
Language Trainer
18 December 2022, 22:46
+2
xaraza
11 December 2022, 16:18
for(var i = 0; i < 5; i ++){
System.out.println("Ellie is very smart");
}
0
Nouamane Samir
24 August 2022, 12:51
Hello guys, I tried doing this task using int and string but couldn't wrap my head around it !
0