dir *.jpg

0

0 votes
Very-Easy
Problem

Given the list of ‘n’ files in the directory, Robbie opens the command prompt and goes to the respective directory and types ‘dir *.jpg’ (without quotes). Find what output will be displayed on the screen

Input Format

First line consists of ‘n’, no of files in the directory Next subsequent ‘n’ lines contains the names of the files along with their extensions

Output Format

Each new line should contain the name of file as it had been shown in cmd

Constraints

0 < n < 101
4 < file-name < 101

Sample Input
2
wce.png
acm.jpg
Sample Output
acm.jpg
Time Limit: 5
Memory Limit: 256
Source Limit:
Editor Image

?