New course! Every coder should learn Generative AI!
Try a free lesson0
Write a program that accepts file name as input, check for file extension and print the file format
For example Input: ab.rb Output : Ruby file
2 Answers
0
Not every extension has fixed period
For example .html ,.doc,.py