Hi, May this s not an optimised/generalise solution ..But it produces the output as expected The code snippet is as under: #include<stdio.h>...
Separate names with a comma.