+ 2

What is error

#include <stdio.h> int main() { int breadth , length ; printf("enter the breadth \n"); scanf("%d", &breadth); printf("enter the length \n" ); scanf("%d", &length); printf("the area of rectangle is", breadth * length ); return 0; }

5th Mar 2023, 9:20 AM
Suryaveer Singh
5 Réponses
+ 2
printf( "the area of rectangle is %d", //👈 breadth * length );
5th Mar 2023, 9:50 AM
Solo
Solo - avatar
+ 3
v.p khangarot look at the last printf call.
5th Mar 2023, 9:40 AM
Tina
Tina - avatar
+ 2
Thanks
5th Mar 2023, 9:52 AM
Suryaveer Singh
+ 1
Use %f at last printf call
7th Mar 2023, 8:00 AM
Sunil Choudhary
Sunil Choudhary - avatar
+ 1
Thanks to all of you
12th Mar 2023, 2:01 PM
Suryaveer Singh