#include <stdio.h>
int main()
{
char s[1000];
int c=0,j;
printf("Enter String: ");
gets(s);
for(j = 0; s[j] != '\0'; j++)
{
if(s[j]=='i' || s[j]=='I')
c++;
}
printf("\nNumber of I/i in String = %d", c);
return 0;
}