i need help with this one:
Code:
#include <stdio.h>
#include <string.h>
char CountEvenASCII(char str[255], int a, int x);
main()
{
char w[255];
int num1, num2;
printf("Input character string: ");
scanf("%s", w);
CountEvenASCII(w, num1, num2);
getch();
return 0;
}
char CountEvenASCII(char str[255], int a, int x)
{
a = x = 0;
if (str[x] % 2 == 0)
{
a = (str[x] + a);
}
x++;
printf("\n%d\n\n",a);
CountEvenASCII(str,a,x);
}
It should display the number of letters with even ASCII values. Please tweak this one for me.