adspace
print a pattern of abcdcba
abc cba
ab ba
a a
ab ba
abc cba
abcdcba
Answer Posted / Mahendra
To print the given pattern, you can use a loop in any programming language. Here's an example in Python:n```pythonnfor i in range(7):n if i % 2 == 0:n print('abc cba'[i//2:]+ ' ba'[(i+1)//2] + ('a a' if i == 3 else ''))n elif i == 6:n print('abcdcba')nelse:n print('ab ba')n```
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
PLEASE ANY ONE READ THIS MESSAGE ANSWER ME AT MY EMAIL ID surendrasaroj18@gmail.com sir i am prepairing for section engineer exam taken by railway my branch is chemical engineering i want previous paper of chemical engineering of section engineer exam taken by railway. please answer me as soon as possible thankyou
can u tel me d question paper of gail?
which materials can l use if l want to use length wave 680 to 900 in hplc
can anyone send me the written test paper of Indian oil corporation ltd. My email id is pratuljakhmola@yahoo.com
hai can anyone send me soft copy of o.p gupta or tell me downloading link please please at saify_0@hotmail.com
i am a student of thapar university final year.can anybody please help me with the exam pattern of the companies:engineers india ltd. ; iocl ; UOP, HPCL. If psbl plz send me the previous years questions on this email id k_arora1987@yahoo.com. i d be really greatful
hai please please if any one have useful test related and interview based question plz send me at saify_0@hotmail.com i will be thankfull
sir i am appearing in railway exam of section engineer and my branch is chemical engineering i want previous question paper of section engineer of chemical branch please tell me as soon as possible my email id is surendrasaroj18@gmail.com THANKYOU
I want previous year question paper of ONGC for chemical engg.
send previousyear question paper for ongc gt 2011 chemical engineering written exam
sir,please give me some exam paper for referance. Thanks & Regards,
Corenuts technology interview questions
Plz if anybody has placement paper of HAL mail me i m Chemical engg my id er.kotnala@gmail.com
Can any one send me the sample test papers of IOCL entry exam to be held on 6th july 2008. Also plz send the interview questions that cud probably be asked........i wud be highly obliged if u can send a few test paers and other stuff @ inderjeetd@gmail.com.........Inderpreet
Jspl question paper for freshers requirements chemical engineering diploma