Emma Watson / PURS zadatci za vjezbu riješeni
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers petlje_z2.cpp Source File

petlje_z2.cpp

00001 #include <iostream>
00002 #include <cstring>
00003 using namespace std;
00004 
00005 
00006 int main (){
00007 
00008     int a;
00009 
00010 
00011     for (int i = 1; i<=100; i++){
00012         a= i;
00013 
00014         if (a % 2 == 0){
00015             cout << a << endl;
00016         }
00017     }
00018 }