+ 2

Ok i am getting a very weird and poesibly wrong output for the following pattern,can you guys help pls,

pattern:. A BAB CBABC DCBABCD https://code.sololearn.com/cZNC8KOHGsnP/?ref=app

11th Dec 2018, 9:03 PM
Abhay
Abhay - avatar
3 Antworten
+ 1
Abhay, the b = a; should be after scanf("%c", &a);
11th Dec 2018, 10:26 PM
ShortCode
+ 1
And dont forget to put newline after scanf
11th Dec 2018, 10:27 PM
ShortCode
0
thks brother!:-)
11th Dec 2018, 10:42 PM
Abhay
Abhay - avatar