Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Wykorzystujac petle for napisz program,
- który wyswietli parzyste liczby calkowite z zakresu od 31 do 52
- */
- #include<iostream>
- using namespace std;
- int main(){
- cout << endl;
- cout << "\t Liczby calkowite oraz parzyste z zakresu 31 - 52:" << endl << endl;
- for(int i=31; i<=52; i++){
- if(i%2==0){
- cout << "\t " << i << endl;
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement