loading

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.10661459196028145","path":"main.c","file":{"path":"main.c","content":{"asEncoding":{"base64":"I2luY2x1ZGUgPHN0ZGlvLmg+CiAKLyogZnVuY3Rpb24gZGVjbGFyYXRpb24gKi8KIAppbnQgbWFpbiAoKSB7CgpjaGFyIG15X3N0cmluZ1tdID0gIkFsbCBiZWVzIGxpa2UgY2hlZXNlIHdoZW4gdGhleSdyZSB3ZWFyaW5nIGhhdHMuIjsKaW50IHggPSAwOwoKZm9yIChpbnQgaSA9IDA7IG15X3N0cmluZ1tpXSAhPSAwOyBpKyspewoJCWlmIChteV9zdHJpbmdbaV0gPT0gJ2UnKQogICAgICB4ID0geCArIDE7Cn0KcHJpbnRmKCIlZFxuIix4KTsKCgppbnQgeSA9IDA7Cgpmb3IgKGludCBpID0gMDsgbXlfc3RyaW5nW2ldICE9IDA7IGkrKyl7CgkJaWYgKG15X3N0cmluZ1tpXSA9PSAnYicpCiAgICAgIHkgPSB5ICsgMTsKfQpwcmludGYoIiVkIix5KTsKcmV0dXJuIDAgOwp9"},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include <stdio.h>
 
/* function declaration */
 
int main () {

char my_string[] = "All bees like cheese when they're wearing hats.";
int x = 0;

for (int i = 0; my_string[i] != 0; i++){
		if (my_string[i] == 'e')
      x = x + 1;
}
printf("%d\n",x);


int y = 0;

for (int i = 0; my_string[i] != 0; i++){
		if (my_string[i] == 'b')
      y = y + 1;
}
printf("%d",y);
return 0 ;
}