Varianta64 Sub2 Ex5 Nu da rez

Download Raw Clone


  1. #include<iostream>
  2. #include<string.h>
  3. using namespace std;
  4. char a[201];
  5. int main()
  6. {
  7. int n, i,nr=0;
  8. while(cin>>a[200])
  9. {
  10. n=strlen(a);
  11. if(a[0]>='a'&&a[n-1]>='a'&&a[0]<='z'&&a[n-1]<='z')
  12. nr++;
  13. }
  14. cout<<nr;
  15. }

Raw paste data: