" Life is not a problem to be solved but a reality to be experienced! "
© Copyright 2013 - 2025 KUDO.TIPS - All rights reserved.
#include <conio.h>
using namespace std;
int main ()
{
int nDzielna = 0;
int nDzielnik = 0;
float fWynik = 0;
cout << "Podaj dzielna: ";
cin >> nDzielna;
do
{
cout << "\n\nPodaj dzielnik: ";
cin >> nDzielnik;
} while ( nDzielnik == 0 );
fWynik = nDzielna / nDzielnik;
cout << "\n\n" << nDzielna << " : " << nDzielnik << " = " << fWynik << "\n\n\n";
getch();
}