Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdlib.h>
- #include <stdio.h>
- #include <conio.h>
- using namespace std;
- int main()
- {
- char ch;
- int adb=0;
- printf("Irjon be egy szoveget!(x-nel kilep) ");
- while((ch = getche()) != 'x')
- {
- if(ch == 'a')
- adb++;
- }
- printf("\nAz a betuk szama: %d db.\n", adb);
- system("PAUSE");
- return EXIT_SUCCESS;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement