Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as C++ by miko1282 ( 6 years ago )
#include <iostream>
using namespace std;
int i,a;
int main()
{
    string tekst;
    getline (cin, tekst);
    for (i=0; i<tekst.size(); i++)
    {
        if (tekst[i]=='a')
            a++;
    }

    cout <<"liczba a wynosi : "<<a;
    return 0;
}

 

Revise this Paste

Your Name: Code Language: