// Example program
#include <iostream>

using namespace std;

int main() //funkcja główna programu
{
  int a; // Zmienna typu liczbowego
  int b;
  int c;
 
  cout << "Podaj pierwsza z liczb? ";
  cin >> a;
  cout << "Podaj drugą z liczb? ";
  cin >> b;
  c=a+b;
  
  cout << "Wynik dodawania liczby, " << a << "+" << b << " wynosi " << c <<" \n";
  if(c>10)
    cout << "Liczba jest większa niz 10";
}
    else
    
    cout << "Liczba jest mniejsza niz 10";
    
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: