DEATHMETALGORE

Numerimi i Zanoreve

Dec 15th, 2013
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.30 KB | None | 0 0
  1. int main()
  2. {
  3.     string fjalia = "Kjo eshte nje fjali testuese a";
  4.  
  5.     unsigned int in;
  6.     int a = 0;
  7.  
  8.     for (in = 0; in < fjalia.length(); in++)
  9.     {
  10.         if ((char)fjalia[in] == 'a')
  11.         {
  12.             a++;
  13.         }
  14.     }
  15.  
  16.     cout << "Zanorja A eshte perdorur " << a << " here";
  17. }
Advertisement
Add Comment
Please, Sign In to add comment