LENGTH OF MACRO : To create a program in c implementing files to find the macrolength of a file. - Computer Programming

Latest

C C++ Java Python Perl Programs Examples with Output -useful for Schools & College Students

Sunday, June 5, 2011

LENGTH OF MACRO : To create a program in c implementing files to find the macrolength of a file.


LENGTH OF MACRO

Aim: To create a program in c implementing files to find the macrolength of a file.

Algorithm:

  1. Create and open a file in read mode.
  2. Type words between macro and mend.
  3. Save the file and open it.
  4. Read  its content.
  5. Increment the counter variable till the string comparison is not equal to zero.
  6. Decrement the counter variable once it is equal to zero.
  7. Print the counter variable which is number of lines.
  8. End.

No comments:

Post a Comment