When I put t[j] in the condition with v[i-1] and v[i+1] mean that I oblige them to be the same(the same number between operation | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

When I put t[j] in the condition with v[i-1] and v[i+1] mean that I oblige them to be the same(the same number between operation

This pgm should make difference between '+' and '-' operation and signe of a number , but I don't want necessary the numbers between operation be the same ? How can I fix that ?! https://code.sololearn.com/cA7A18a224A5/?ref=app

29th Jan 2021, 8:02 AM
Zeineb
Zeineb - avatar
1 Answer
+ 1
Some mistakes i noticed first thing your i variable is decleared two time solo ide saying redecleared variable i . Next one in line 25 where u have written printf u printing &b are u printing address or value .. remove ampersand
29th Jan 2021, 9:10 AM
A S Raghuvanshi
A S Raghuvanshi - avatar