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 registered user huhu ( 10 years ago )
#include <iostream>
#include <string>

using namespace std;

int main()
{
    string N [5];
    int i=0;

    for (int a=0; a<5>> N[a];
    }

     for (int a=0; a<5 ; a++){

        if (N[a]=="samsung"){
                i++;

    }

     }

     cout << i << endl;



    return 0;
}

 

Revise this Paste

Children: 80969
Your Name: Code Language: