Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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:

image text in transcribedimage text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions

Question

Recommend what could be done to avoid vessel failure

Answered: 1 week ago