Run Code  | API  | Code Wall  | Users  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

14th Dec Project1 v0.2

Language: Layout:
+ ] Compiler args - ] Show input
Compilation time: 0.12 sec, absolute running time: 0.14 sec, cpu time: 0 sec, memory peak: 3 Mb, absolute service time: 0,35 sec 
edit mode |  history  | discussion
Warning(s):
source_file.c: In function ‘main’:
source_file.c:31:11: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘char (*)[100]’ [-Wformat=]
     scanf("%s%lf%lf%lf",&CustomerName,&Days,&Miles,&Gallons);
           ^
source_file.c:31:5: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
     scanf("%s%lf%lf%lf",&CustomerName,&Days,&Miles,&Gallons);
     ^
----------------------------------------------------------
 Part 1-1
   *
  * *
 * * *
* * * *
Part 1-2
* * * * *
* * * * *
* * * * *
* * * * *
* * * * *
----------------------------------------------------------
 Part 2
Customer name:
     Number of days:
     Number of miles:
     Number of gallons:
------------------------------
     Total Rental Cost:$_______
------------------------------
Customer name:MichaelBeans 
     Num ber of days:2.000000 
     Number of miles:2.000000 
     Number of gallons:2.000000 
------------------------------
     Total Rental Cost:$ 64.000000 _______
----------------------------------------------------------------------
 Part 3