Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Output Statements:

Vinay Rawal answered on April 1, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • output in javascript
  • print output
  • Javascript print/output
  • Output:
  • Input and Output Statements
  • write a code for this output
  • print statements

  • Output Statements:

    0

    We can use print() function to display output.

    Form-1: print() without any argument

    Just it prints new line character

    Form-2:

    1) print(String):

    2) print("Hello World")

    3) We can use escape characters also

    4) print("Hello \n World")

    5) print("Hello\tWorld")

    6) We can use repetetion operator (*) in the string

    7) print(10*"Hello")

    8) print("Hello"*10)

    9) We can use + operator also

    10) print("Hello"+"World") 

    Popularity 1/10 Helpfulness 1/10 Language whatever
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Apr 01 2023
    Vinay Rawal
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.