Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.49 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.  
  6.     /*int arr[] = { 11,24,25,555,124 };
  7.     int sum = 0;
  8.     for (int x = 0; x < 5; x++) {
  9.         sum += arr[x];
  10.     }
  11.  
  12.     cout << sum << endl;*/ //turha jööti.
  13.  
  14.     int x;
  15.     for (x = 0; x < 10; x++) {
  16.        
  17.         int a;
  18.         cout << "Sano numerosarja" << endl;
  19.         cin >> a;
  20.             if (bool a = true) {
  21.             cout << "Numeroa vastaava ASCII-merkki on: " << endl << char(a) << endl;
  22.         }
  23.         else {
  24.             cout << "Anna kokoluku!" << endl;
  25.         }
  26.    
  27.  
  28.     }
  29.     return 0;
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement