0

Can anyone please tell me why my test case failed?

#include <stdio.h> int main() { // number of tickets ordered// int tickets = 73; // price per ticket// float price = 7.45; // Task: calculate the total price and store it in a variable// // Hint: use a float to store the result// float total_price = tickets * price; //Task: output the total in the format "Total: X", where X is the total price// printf("Total: %.2f\n", total_price); return 0; }

23rd Mar 2024, 7:45 AM
Nobiya Noyal
Nobiya Noyal - avatar
2 Antworten
+ 3
Nobiya Noyal , if you refer to a sololearn exercise, you should mention the programming language, also the tutorial or exercise name.
23rd Mar 2024, 3:13 PM
Lothar
Lothar - avatar
+ 1
Nobiya Noyal , Hi. Please add a tag for the computer language you're using.
23rd Mar 2024, 12:24 PM
Rain
Rain - avatar