- 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)

18th Apr 2022, 1:29 AM
SUDARSHAN URJANA
SUDARSHAN URJANA - avatar
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
18th Apr 2022, 10:06 AM
Lothar
Lothar - avatar