Computer Science, asked by Aqsakhan49, 6 months ago

Write syntax to find the rounded-off of a number b ​

Answers

Answered by yoneha17
1

Answer:

Given a positive number n (n > 1), round-off this number to a given no. of significant digits, d.

Examples:

Input : n = 139.59

d = 4

Output : The number after rounding-off is 139.6 .

The number 139.59 has 5 significant figures and for rounding-off

the number to 4 significant figures, 139.59 is converted to 139.6 .

Input : n = 1240

d = 2

Output : The number after rounding-off is 1200 .

Answered by SiddharthaDey
2

Answer:

Thank you for free points.

Mark me as brainliest.

Inbox me anyone

Similar questions