Can anyone solve this the problem is in the formula | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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; }

13th Aug 2022, 3:43 PM
Rahul Nayak
Rahul Nayak - avatar
6 Answers
+ 2
Use "*" this multiplication symbol to calculate the perimeter perimeter = 2* (length+width)
13th Aug 2022, 3:46 PM
Pallavi Jha
Pallavi Jha - avatar
+ 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.. !!!
13th Aug 2022, 4:03 PM
Jayakrishna 🇮🇳
13th Aug 2022, 4:06 PM
Pallavi Jha
Pallavi Jha - avatar
0
No sir it's not working
13th Aug 2022, 3:51 PM
Rahul Nayak
Rahul Nayak - avatar
0
Yeah it works thanks d
13th Aug 2022, 4:09 PM
Rahul Nayak
Rahul Nayak - avatar
0
soltar código
14th Aug 2022, 1:49 PM
Timber Uc
Timber Uc - avatar