Computer Science, asked by dipalipuja2006, 5 months ago

To complete the following program to find numbers whose cube is less than 1000 which of

the following options would be the correct one?

N = 1

cube_of_N = N*N*N

While cube_of_N< 1000

if _________ then

Print N

N = N + 1

cube_of_N = N*N*N

end if

End while

(a) N < 1000

(b) N < N + 1

(c) N > 1

(d) N > 1000

no irrelevant answers plzz​

Answers

Answered by saritakujurvinisha
2

Answer:

Numbers less than N that are perfect cubes and the sum of their digits reduced to a single digit is 1

Given a number n, the task is to print all the numbers less than or equal to n which are perfect cubes as well as the eventual sum of their digits is 1.

Examples:

Input: n = 100

Output: 1 64

64 = 6 + 4 = 10 = 1 + 0 = 1

Input: n = 1000

Output: 1 64 343 1000

Answered by Anonymous
0

Answer:

Siso m bol dungi peeyush bhaiya ko

Byy siso take care❤❤❤

Attachments:
Similar questions