Facebook
From Social Treeshrew, 7 Years ago, written in C++.
This paste is a reply to Re: Re: Re: Re: Untitled from Capacious Parakeet - view diff
Embed
Download Paste or View Raw
Hits: 505
  1. #include <iostream>
  2.  
  3. using namespace std;
  4. int a, b, i, c;
  5. float reszta;
  6. int main()
  7. {
  8.     cout << "Podaj poczatek zakresu" <<endl;
  9.     cin>>a;
  10.     cout << "Podaj koniec zakresu" <<endl;
  11.     cin>>b;
  12.     if(a>b) {
  13.     c=a;
  14.     a=b;
  15.     b=c;
  16.     }
  17.     for(i=a;i<=b;i++)
  18.     {
  19.         reszta=i%3;
  20.         if(reszta==0){
  21.             cout<<"Liczba "<< i <<" jest podzielna przez 3"<<endl;
  22.         }
  23.     }
  24.     return 0;
  25. }
  26.  

Replies to Re: Re: Re: Re: Re: Untitled rss

Title Name Language When
Re: Re: Re: Re: Re: Re: Untitled Scorching Capybara cpp 7 Years ago.