Where are my errors in this C Program?

Write a C program that examines each character in
a two-dimensional array and determines how many
of the characters are vowels (a, e, i, o, u), how
many are consonants, how many are digits and how
many are other kinds of characters. The program
should also determine the number of character “n”
appeared in the text.
􀂄 The program should read in three lines of text and
store it in a two-dimensional character array.
􀂄 Assume that array can store up to 80 characters.
􀂄 Display the results on the screen.

An example of input/output is shown below
Enter three lines of text :
CE1100 Computer Programming
Assignment #10
Question #1
No. of vowels : 14
No. of consonants : 25
No. of digits : 7
No. of other characters : 6
No. of occurrences for letter n : 4


Error solution :
#include <stdio.h>
#include <ctype.h>


void main()
{
int v=0,c=0,d=0,o=0,p=0,i,j;
char s[3][80];

printf("Enter a character :");
gets(s);

for(i=0;s[i][j]!='\0';i++)
{
if(isdigit(s[i])!=0)
{
d++;
}
else if(isalnum(s[i][j])==0)
{
o++;
}
else if(isalpha(s[i][j])!=0)
{

if(tolower(s[i])=='a'||tolower(s[i])=='e'||tolower(s[i]=='i'||tolower=='o'||tolower(s[i])=='u')…
{
v++;
}
else
{
c++;
}
}


}

printf("No. of vowels : %d\n",v);
printf("No. of consonants: %d\n",c);
printf("No. of digits: %d\n",d);
printf("No. of other characters: %d\n",o);
printf("No. of occurences for letter n : %d\n",p);



}

Can anybody help me to finish this one?
What are the errors? I'm not going to just look through that...that's what the compiler is supposed to do.
I have to use 2 dimensional array and one inner and one outer for loop, but i still dont understand how can and where i use it?
Topic archived. No new replies allowed.