hi I am having some issues to copile
what I need
program that tests this on a string.
Create a string (array of chars) that can hold 1000 characters.
Prompt the user to enter a string.
Calculate the frequency of the letter e within the string
so far this is what I have:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define CURRENT_CHART 1000
int main()
{
char c[1000];
int i,eCounter=0,stringLength =0;
printf(“Enter your string: “);
scanf(”%s”,c);
double frecuency ;
while (c[i] != '\0')
{
if (c[i] >= 'a' && c[i] <= 'z')
{
c[i] -= 32;
}
if (c[i] == '\n')
{
c[i] = '\0';
}
i++;
}
printf("frecuency of %i = %lf \n",c);
system ("pause");
}