New course! Every coder should learn Generative AI!
Try a free lesson0
Having a issue
#include <stdio.h> int main() { printf("Product: %s\n", "LCD Monitor"); printf("Price: %.6f\n", 49.95); return 0; } My answer is same as the expected answer but still it's not working for me .
3 Answers
+ 4
Hi Baljeet Singhnarde
It seems to be executing fine
Let us know if you are expecting different output and post the task description
https://sololearn.com/compiler-playground/cCr4IOqJ4kJQ/?ref=app
+ 3
Baljeet Singhnarde don't specify the float precision and don't add the 2nd newline.This code passed the test.
#include <stdio.h>
int main() {
printf("Product: %s \n", "LCD Monitor");
printf("Price: %f", 49.95);
return 0;
}
0
Actually the output coincide with the expected result but still sololearn is displaying that my answer is wrong 😔