Advertisement
wrahq

[ćw 1 / 11-3] Liczby parzyste 31-52

Apr 25th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.38 KB | None | 0 0
  1.     /*
  2.    
  3.     Wykorzystujac petle for napisz program,
  4.     który wyswietli parzyste liczby calkowite z zakresu od 31 do 52
  5.    
  6.     */
  7.  
  8. #include<iostream>
  9. using namespace std;
  10.  
  11. int main(){
  12.    
  13.     cout << endl;
  14.     cout << "\t Liczby calkowite oraz parzyste z zakresu 31 - 52:" << endl << endl;
  15.    
  16.     for(int i=31; i<=52; i++){
  17.         if(i%2==0){
  18.             cout << "\t " << i << endl;
  19.         }
  20.     }
  21.    
  22.    
  23. return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement