- 4
Calculate a perimeter using given number. The last digit of the number is breadth and remaining corresponding digit is length
Calculate perimeter of rectangle (in c language)
1 Réponse
+ 2
SUDARSHAN URJANA ,
since you have not mentioned the programming language , using python will require a modified code than Jay Matthews sample.
( results from python )
num = 228
Breadth = num % 10
Length = num / 10 # result is 22.8
Breadth = num % 10
Length = num // 10 # result is 22