Having a issue | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

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 .

25th Mar 2024, 12:53 PM
Baljeet Singhnarde
Baljeet Singhnarde - avatar
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
25th Mar 2024, 12:58 PM
𝘕𝘉
𝘕𝘉 - avatar
+ 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; }
25th Mar 2024, 1:27 PM
Bob_Li
Bob_Li - avatar
0
Actually the output coincide with the expected result but still sololearn is displaying that my answer is wrong 😔
25th Mar 2024, 1:07 PM
Baljeet Singhnarde
Baljeet Singhnarde - avatar