My issue
How to remove one main
My code
#include <stdio.h>
#include <stdlib.h>
// Function to display the contents of the file
void userFunction() {
// Use system() to run the 'cat' command and display the contents of input.txt
system("cat /mnt/codechef/input.txt");
}
// Only one main function
int main() {
// Call the function to display file contents
userFunction();
return 0;
}
Learning course: Programming and Problem solving using C
Problem Link: https://www.codechef.com/learn/course/ciet-programming-c/CIETPC37/problems/PPSC269