Question: This is my code: Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland ass1 task1 . c: Error E2140 ass1 task1. c 26: Declaration

This is my code:

This is my code: Borland C++ 5.5.1 for Win32 Copyright (c) 1993,2000 Borland ass1 task1 . c: Error E2140 ass1 task1. c 26:

Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland ass1 task1 . c: Error E2140 ass1 task1. c 26: Declaration is not allowed here in function main 1 errors in Compile * **#include Hint main (void) { char name [50] ; int Inum, days; 9 printf ("Enter the name of customer: ") ; 10 11 scanf ("*s", name) ; 12 13 printf ("Enter the license number: ") ; 14 15 scanf ("ad", 6lnum) ; 16 17 printf ("Enter the number of days hired for $s ", name) ; 18 19 scanf ("ad", 6days) ; 20 21 printf ("\\\\") ; 22 23 24 25 26 const float rental = days * 34.50; 27 28 29 30 printf ("$50s", "Summary of Hire\\") ; 31 32 printf ("$60s", 33 -\\") ; 34 printf ("\\\\\\t\\t\\tCustomer: #s\\", name) ; 35 36 printf("\\\\t\\t\\t\\tLicense Number: #d\\", Inum) ; 37 38 printf("\\t\\t\\t\\t\\tNumber of Days: ad\\", days) ; 39 40 printf("\\t\\\\t\\t\\tThe Rental is $3.2f", rental) ; 41 42 return 0 ; 43 4 4

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!