Program to have dynamic initialization for variables area and perimeter.

..LAST PROGRAM..

Q16. Modify the last program to have dynamic initialization for variables area and perimeter.

Ans.

:

:

int main()

{

int length=10,width=12;

int area=length*width;

perimeter=2*(length+width);

:

:

}

Leave a Reply

Your email address will not be published. Required fields are marked *

184 Views
%d bloggers like this: