Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- /*int arr[] = { 11,24,25,555,124 };
- int sum = 0;
- for (int x = 0; x < 5; x++) {
- sum += arr[x];
- }
- cout << sum << endl;*/ //turha jööti.
- int x;
- for (x = 0; x < 10; x++) {
- int a;
- cout << "Sano numerosarja" << endl;
- cin >> a;
- if (bool a = true) {
- cout << "Numeroa vastaava ASCII-merkki on: " << endl << char(a) << endl;
- }
- else {
- cout << "Anna kokoluku!" << endl;
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement