Zadaca br4 Get link Facebook X Pinterest Email Other Apps May 29, 2025 1Zadaca br423#include <iostream>4using namespace std;56int main ( )7{8 int a=8;9 int b=10;1011 cout << (a+b)/2 << endl;1213 return 0;14 } Get link Facebook X Pinterest Email Other Apps
Zadaca br7 May 29, 2025 1Zadaca br7 2 3#include <iostream> 4using namespace std; 5 6int main ( ) 7{ 8 int a,b,c,d,e,f,g,h,presmetka; 9 cin >> a; 10 cin >> b; 11 cin >> c; 12 cin >> d; 13 cin >> e; 14 cin >> f; 15 cin >> g; 16 cin >> h; 17 18 presmetka = a+b+c+d+e+f+g+h; 19 20 cout << presmetka << endl; 21 22 return 0; 23 } Read more
Zadaca br5 May 29, 2025 1Zadaca br5 2 3#include <iostream> 4using namespace std; 5 6int main ( ) 7{ 8 int i=2; 9 do 10 { 11 cout << i >> "" 12 i++; 13 } 14 while (i=10); 15 16 17 return 0; 18 } Read more
Zadaca br8 May 29, 2025 1Zadaca br8 2 3#include <iostream> 4using namespace std; 5 6int main ( ) { 7 int n; 8 9 cout <<"Vnesi eden broj" ; 10 cin >> n; 11 12 if ( n % 2 ==0) 13 cout << n << "Paren" ; 14 else 15 cout << n << "Neparen" ; 16 17 return 0; 18 } Read more