Computer Science, asked by palak101318, 4 months ago

Differentiate the following:
Constants and Variables
print and input statement

Answers

Answered by akashrawat09
6

Answer:

A constant does not change its value over time. A variable, on the other hand, changes its value dependent on the equation. Constants are usually written in numbers.

ᕼᗴᒪᒪO

⠀⠀⠀⠀· · • • • ✤ • • • · ·

Kᴏɪ ʙʜɪ 2ᴘʏᴀᴀʀᴇ ʟᴏɢ ᴍᴜᴊʜᴇ

⠀⠀⠀ 20ᴛʜx ᴅᴇsᴋᴛᴇ ʜᴏ?

⠀⠀⠀⠀⠀⠀⠀Pʟᴢ...

⠀⠀⠀Fᴏʟʟᴏᴡ ʙʜɪ ᴋʀᴅᴏ

Answered by xXMrMysteryXx
2

Explanation:

A quantity which has no fixed value but takes no various numerical values is called a variable. For example: ... (i) In 2a, 2 is a constant and a is a variable. (ii) In -7mn, -7 is a constant and m and n are variables.

There is a major difference between the input and print function.

You can say that they are opposite of each others.

print function lets you to give output at the console and input function lets you to take input from the console.

Like if you want to print some values at the screen through console you can choose print function.

But for taking input from the users through the console you can choose input function for that purpose.

Similar questions