Can anyone solve this the problem is in the formula | Sololearn: Learn to code for FREE!

+2

Can anyone solve this the problem is in the formula

#include <stdio.h> int main() { float length,width,perimeter; printf("enter length of the rectangular"); scanf("%f",&length); printf("enter length of the rectangular"); scanf("%f",&width); perimeter = 2 ^ (length + width); printf("perimeter of rectangular is %f unit",perimeter); return 0; }

c

8/13/2022 3:43:27 PM

Rahul Nayak

7 Answers

New Answer

+2

Use "*" this multiplication symbol to calculate the perimeter perimeter = 2* (length+width)

+1

Rahul Nayak Why not it working? Can you Share more details with sharing link of your saved update code, along with your trouble, your output and expected output.. !!!

+1

https://code.sololearn.com/cRtGvnGNkyQQ/?ref=app It's working properly.

0

No sir it's not working

0

Yeah it works thanks d

0

the ^ symbol is bitwise XOR operator not multiplication.

0

soltar código