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; }
2 Antworten
+ 3
Nobiya Noyal ,
if you refer to a sololearn exercise, you should mention the programming language, also the tutorial or exercise name.
+ 1
Nobiya Noyal ,
Hi. Please add a tag for the computer language you're using.