C Language Create Program Prints Alphabet Columnwise One Text File Reads Text File Prints Q37231402

In C language. Create a program that prints the alphabetcolumnwise to one text file, reads that text file, and then printsthe alphabet in reverse to another text file.

  • The alphabets must be uppercase.
  • The alphabets must be printed columnwise inboth files.
  • The first file with the alphabet must be namedaz_astusername.txt.
  • The second file with the alphabet in reverse must be namedza_astusername.txt.
  • File names must be lowercase.

Answer


If you need any corrections kindly let me know through comments.I will correct it

Program

#include <stdio.h>
#include <stdlib.h>

int main()
{
    FILE *fptr;
    char c,d;
    char cc[13],dd[13];
    int i=0,j;
    fptr=fopen(“az_astusername.txt”,”w”);
    for(c = ‘A’,d = ‘N’; c <= ‘M’; ++c,++d)
    {
    printf(“%ct%cn”,

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.