Philips Interview Question

Write a program to square the numbers as long as the user provides the input. When 0 is pressed the program must terminate after displaying all the squared numbers. Other questions where related to projects

Interview Answer

Anonymous

Jul 7, 2019

It can be solved using dynamically allocating memory using malloc() function to store all the squared numbers directly and then finally displayed at once.

1