Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
295Activity
0 of .
Results for:
No results containing your search query
P. 1
BAC 2009 - Rezolvari informatica Intensiv si Neintensiv de la www. rezolvari.net

BAC 2009 - Rezolvari informatica Intensiv si Neintensiv de la www. rezolvari.net

Ratings:

4.0

(4)
|Views: 35,826 |Likes:
Published by mirelusi594
Rezolvari informatica bacalaureat 2009 subiecte intensiv si neintensiv
Rezolvari informatica bacalaureat 2009 subiecte intensiv si neintensiv

More info:

Categories:Types, School Work
Published by: mirelusi594 on Mar 12, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

05/10/2014

pdf

text

original

 
Atentie: Fata de 2008, variantele din 2009 au peste 80 de diferente.Vezi variantele rezolvate de la
www.rezolvari.net
Subiectul I Varianta 221. b
Explicatie:
a/b%c<=b
20/3%5<=3
6%5<=3
1<=3
1!(b==a)
!(3==20)
!0
11 || 1
1
2.a) 15
Explicatie: Algoritmul afiseaza cel mai mare divizor propriu al lui n
 b)
Algoritm echivalentciteste ndaca n<0 atuncin
-nsfarsit dacad
1
i
2cat timp i<=[n/2] executa
daca i|n atuncid
isfarsit dacai
i+1
sfarsit cat timp
scrie d
c) Programul
#include<iostream.h>void main(){unsigned int n,i,d;cin>>n;if(n<0) n=-n;d=1;for(i=2;i<=n/2;i++)if(n%i==0)d=i;cout<<d;}
d) 25 sau 17
(orice numar prim sau patrat perfect de numar prim)

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->