Computer Science, asked by Chakshu290703, 1 year ago

What's wrong with this?

Attachments:

Chakshu290703: I cant get u 4k pic
Anonymous: instead of screenshoting, you could have just used your phone's camera!
Chakshu290703: My bluej setting is weird
Chakshu290703: Idk y but i opens at low resolution
Niyathi738: did u try what I said?
Anonymous: Okay, then ya should switch to a different IDE
Chakshu290703: I ll try that @maria210
Chakshu290703: @Niyathi I dont get what a1 variable is
Chakshu290703: Wait i ll upload a clear picture
Niyathi738: ohk...

Answers

Answered by iIshita1
1
u initialised s inside product()
so it is only applicable to that function
u have to initialise it outside that function
Answered by Niyathi738
1
Replace a with p.
U have not assigned the value of variable a.
So it is showing error.

Hope it helps u!!

Niyathi738: welcome
Similar questions