Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arpitbatra123/mp3sem
Mini Project for 3rd Semester
https://github.com/arpitbatra123/mp3sem
Last synced: 25 days ago
JSON representation
Mini Project for 3rd Semester
- Host: GitHub
- URL: https://github.com/arpitbatra123/mp3sem
- Owner: arpitbatra123
- Created: 2017-07-30T06:54:22.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-07-30T07:08:29.000Z (over 7 years ago)
- Last Synced: 2024-10-14T07:11:32.530Z (2 months ago)
- Language: C
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mp3sem
Mini Project for 3rd SemesterDescription:
The project has three programs, 1.c which is a program to find integers (positive integer only) where every digit is greater or equal to the digit preceding it (wherever such a preceding digit exists) , 2.c which is a program to find the probability of prime numbers from a given range and main.c , which displays a menu to select which program to run and runs the required program. Also included is a header file header.h , which includes "1.c" and "2.c" for later use in the main program.How to Compile And Run:
1. On Codeblocks/Other IDE on the Windows platform:
Make Sure to Keep all the required files (Source codes and input files) in the same directory. Open the file main.c in the IDE of your choice (Codeblocks is recommended) and build it. After building the file, a file named main.exe will be in the directory where the source codes were initially present. Open a
command prompt and navigate to the directory where the file main.exe is. To run the program simply type main followed by the name of your input file and press
enter.
2.On the Command Line in a linux based system:
Make Sure to Keep all the required files (Source codes and input files) in the same directory.Then Open a terminal and navigate to the directory where you placed all the above files.Then issue the following set of commands:
To compile:
gcc main.c
To run:
./a.out *input.txt
*input filenameEND OF README