1 #include 2 3 int main(void) { 4 char a; 5 char b; 6 char c; 7 8 scanf("%c", &a); 9 scanf("%c ", &b); scanf("%c &c); 1

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

1 #include 2 3 int main(void) { 4 char a; 5 char b; 6 char c; 7 8 scanf("%c", &a); 9 scanf("%c ", &b); scanf("%c &c); 1

Post by answerhappygod »

1 Include 2 3 Int Main Void 4 Char A 5 Char B 6 Char C 7 8 Scanf C A 9 Scanf C B Scanf C C 1 1
1 Include 2 3 Int Main Void 4 Char A 5 Char B 6 Char C 7 8 Scanf C A 9 Scanf C B Scanf C C 1 1 (33.98 KiB) Viewed 34 times
1 #include 2 3 int main(void) { 4 char a; 5 char b; 6 char c; 7 8 scanf("%c", &a); 9 scanf("%c ", &b); scanf("%c &c); 10 12 11 printf("%cxcxc ",a,b,c);//put a space in front of Xc printf("%c%c%c ",a,c,b);//put a space after Last Xc 13 printf("%ccc",b,a,c);//put a space after last c 14 printf("%cxcxc ,b,c,a);//put a space after Last Xc printf("%c%c%c ",c,a,b);//put a space after last c printf("%c%c%c",c,b,a);//put a space after Last *c printf("\n"); 15 16 17 X Not all tests passed un X Testing with 'x, y, z Output is nearly correct, but whitespace differs. See highlights below. Special character legend Your output xy2 xây yxz yzx 2xy zyx Vex xy ly
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply