+ 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; }
5 Réponses
+ 2
printf(
"the area of rectangle is %d", //👈
breadth * length
);
+ 3
v.p khangarot look at the last printf call.
+ 2
Thanks
+ 1
Use %f at last printf call
+ 1
Thanks to all of you