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
2 Answers
+ 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