Give program for this output
abcdeedcba
abcdxxdcba
abcxxxxcba
abxxxxxxba
axxxxxxxxa
rohoni 0 Newbie Poster
Recommended Answers
Jump to PostI'd start with plgriffith's program and make a minor change
#include <stdio.h> int main() { char buf[] = "abcdeedcba\nabcdxxdcba\nabcxxxxcba\nabxxxxxxba\naxxxxxxxxa\n"; int i; i = 0; while (buf[i]) { putchar (buf[i++]); } return 0; }
All 4 Replies
plgriffith 0 Junior Poster
rohoni 0 Newbie Poster
mitrmkar 1,056 Posting Virtuoso
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.