Your initial post said this was for numbers. Do you need just letters, now? Or letters and numbers both?
Type: Posts; User: Adak
Your initial post said this was for numbers. Do you need just letters, now? Or letters and numbers both?
As you < ahem! > noticed, that code was just "off the cuff", and has not been run (let alone tested). So be sure to test it thoroughly, yourself.
And you're welcome. :cool:
Matticus nailed it - yes, count is not an array, it should be count1[i] in that printf() statement.
C99Tutorial already stated how to do this. You glossed over that post, without really understanding it!
#include<stdio.h>
int main(void)
{
//added i to the list of int variables,...