In my this code it show that it is too large number I use long rather it show error! So why it show error??? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

In my this code it show that it is too large number I use long rather it show error! So why it show error???

https://code.sololearn.com/cZz4VJUaYOPa/?ref=app

5th Jun 2018, 4:26 PM
Harsh Agrawal
Harsh Agrawal - avatar
2 Answers
+ 3
@Harsh Agrawal When you're using a long literal (such as in your object's input method), you need to put an L at the end to designate that it's a long literal. CHANGE: ob.input(5689,7000695791,15,"harsh"); TO: ob.input(5689,7000695791L,15,"harsh"); ^As you can see, I put an L at the end of 7000695791 to correct the issue. ::::OUTPUT::::: bike no phone no name no of days charge 5689 7000695791 harsh 15 10500
5th Jun 2018, 4:39 PM
Fata1 Err0r
Fata1 Err0r - avatar
+ 1
okkkk thnxxxx Fata1 Err0r
5th Jun 2018, 4:42 PM
Harsh Agrawal
Harsh Agrawal - avatar