b) Print the given string 8 times along with line number.Print line number first and then the given string. Line number goes from 1-8. String: "Learning Swift." WAP in Swift programming language.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter7: Characters, Strings, And The Stringbuilder
Section: Chapter Questions
Problem 15RQ
icon
Related questions
Question

b) Print the given string 8 times along with line number.Print line number first and then the given string. Line number goes from 1-8. 

String: "Learning Swift." 

WAP in Swift programming language.

Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT