Ok i am getting a very weird and poesibly wrong output for the following pattern,can you guys help pls, | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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 Answers
+ 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