<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-28477131</id><updated>2011-04-21T20:08:59.173-07:00</updated><title type='text'>coco-cosmin</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://coco-cosmin.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28477131/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://coco-cosmin.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>coco-cosmin</name><uri>http://www.blogger.com/profile/02377136064025620772</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-28477131.post-116880457185418885</id><published>2007-01-14T11:55:00.000-08:00</published><updated>2007-01-14T11:56:11.856-08:00</updated><title type='text'></title><content type='html'>1.&lt;br /&gt;#include &lt;conio.h&gt;#include &lt;stdio.h&gt;#include &lt;math.h&gt;main(){ int a,b,c,d;  float x1,x2;clrscr();printf("a="); scanf("%d",&amp;a);printf("b="); scanf("%d",&amp;b);printf("c="); scanf("%d",&amp;c);d=b*b-4*a*c; if (d&gt;=0) { x1=(-b+sqrt(d))/(2*a); printf("x1= %2.2f\n",x1); x2=(-b-sqrt(d))/(2*a); printf("x2= %2.2f\n",x2); } else           {      printf("\nDelta negativ, nu exista solutii in multimea nr reale.");                } getch();}&lt;br /&gt;2.&lt;br /&gt;#include &lt;stdio.h&gt;#include &lt;conio.h&gt; main() { float a,b,rez; short opt; clrscr(); printf("Alegeti o operatie(1 pt. adunare,2 pt. scadere,3 pt. inmultire,4 pt. impartire):"); scanf("%d",&amp;opt); printf("a="); scanf("%f",&amp;a); printf("b="); scanf("%f",&amp;b); switch(opt){  case 1:rez=a+b;         printf("Dupa adunare:%f",rez);         break;  case 2:rez=a-b;         printf("Dupa scadere:%f",rez);         break;  case 3:rez=a*b;         printf("Dupa inmultire:%f",rez);         break;  case 4:if(b!=0){         rez=a/b;         printf("Dupa impartire:%f",rez);         }  else printf("Impartire la 0!"); break; default:printf("Optiune gresita!");} getch(); }&lt;br /&gt;3.&lt;br /&gt;#include &lt;stdio.h&gt;#include &lt;math.h&gt; #include &lt;conio.h&gt; int main () { int nr,suma=0; printf("nr:"); scanf("%d",&amp;nr); do { suma=suma+nr%10; nr=nr / 10;} while (nr!=0); printf("suma este %d",suma); getch(); }&lt;br /&gt;4.&lt;br /&gt;#include&lt;stdio.h&gt;#include&lt;conio.h&gt; main() { int n1,n2; clrscr(); printf("dati un nr:");  scanf("%d",&amp;n1); printf("dati un nr:");  scanf("%d",&amp;n2); do{  if(n1&gt;n2)   n1=n1-n2;  else   n2=n2-n1; } while(n1!=n2); printf("cmmdc=%d",n1); getch(); }&lt;br /&gt;5.&lt;br /&gt;#include &lt;stdio.h&gt;#include &lt;conio.h&gt;main()   {   int nr, max;   clrscr();   printf("nr=");scanf("%d",&amp;nr);   if (nr==0) max=0;   else     {       max=nr;       do         {           printf("nr=");           scanf("%d",&amp;nr);           if (nr&gt;max) max=nr;         }       while (nr != 0 );     };   printf("Maximul este %d\n", max); getch(); }&lt;br /&gt;6.&lt;br /&gt;#include &lt;stdio.h&gt;#include &lt;conio.h&gt; main() {   int i, n;   float sm, med=0;   clrscr();   printf("Nr studenti:"); scanf("%d", &amp;n);   for (i=1; i&lt;=n; i++)     {       printf("med[%d]:", i);       scanf("%f", &amp;sm); med=med+sm;     }   printf("Media grupei este:%0.2f\n", med/n);   getch();  }&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28477131-116880457185418885?l=coco-cosmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://coco-cosmin.blogspot.com/feeds/116880457185418885/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28477131&amp;postID=116880457185418885' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28477131/posts/default/116880457185418885'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28477131/posts/default/116880457185418885'/><link rel='alternate' type='text/html' href='http://coco-cosmin.blogspot.com/2007/01/1.html' title=''/><author><name>coco-cosmin</name><uri>http://www.blogger.com/profile/02377136064025620772</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28477131.post-116880423459886590</id><published>2007-01-14T11:50:00.000-08:00</published><updated>2007-01-14T11:55:48.663-08:00</updated><title type='text'></title><content type='html'>7.&lt;br /&gt;#include &lt;stdio.h&gt;#include &lt;conio.h&gt; #include &lt;math.h&gt;  main () {   int prim, nr, i;   clrscr();   printf("nr:"); scanf("%d",&amp;nr);   prim=1;   for (i=2;i&lt;=sqrt(nr);i++)   if (nr%i==0) prim=0;   if (prim==1) printf("%d este prim\n", nr);   else printf("%d nu este prim\n", nr);   getch();   }&lt;br /&gt;8.&lt;br /&gt;#include &lt;stdio.h&gt;#include &lt;conio.h&gt; main() { int i,j, k=0, s=0, v[1000]; clrscr(); for(i=6; i&lt;10000; i++) { for(j=1; j&lt;=i/2; j++) if(i%j==0) s=s+j; if(s==i) { v[k]=i; k++; } s=0; }    for(i=0; i&lt;k; i++) printf("v[%d]=%d\n", i, v[i]);      }&lt;br /&gt;9.&lt;br /&gt;#include &lt;stdio.h&gt;#include &lt;conio.h&gt; main() {   int i,n,m,min;   clrscr();   printf("dati un nr:"); scanf("%d", &amp;n);   printf("Mai dati un nr:"); scanf("%d", &amp;m);   if(n&lt;m)     min=n;   else     min=m;   for(i=1;i&lt;=min/2;i++)     {       if ((n%i==0) &amp;&amp;amp; (m%i==0))       printf("%d\n",i);     }   getch();  }&lt;br /&gt;10.&lt;br /&gt;#include &lt;conio.h&gt;#include &lt;stdio.h&gt;main() {   int n, p, k=0, i, nr;   clrscr();   printf("Numarul de nr: n="); scanf("%d", &amp;n);   printf("p="); scanf("%d", &amp;p);     for(i=1; i&lt;=n; i++)       {         printf("Dati un nr:");         scanf("%d", &amp;nr);         while(nr%p==0)           {             k++;             nr=nr/p;           }       }   printf("k maxim: %d", k);   getch();   }&lt;br /&gt;11.&lt;br /&gt;#include &lt;stdio.h&gt;#include &lt;conio.h&gt; #include &lt;math.h&gt; main() { int p[1000], k=1, dp[1000],i, n, o, j, l=0, prim; clrscr(); p[0]=2; printf("introd nr:");scanf("%d", &amp;n); &lt;br /&gt;for(i=3; i&lt;=n; i++) { prim=1; for(j=2; j&lt;=int(sqrt(i)); j++) { if(i%j==0) prim=0;   }  if(prim){p[k]=i; k++;} }  o=n;for(i=0; i&lt;k; i++) { while(o%p[i]==0) { dp[l]=p[i]; o/=p[i]; l++;   } }  printf("1\n"); for(i=0; i&lt;l; i++) printf("%d\n",dp[i]);&lt;br /&gt;}&lt;br /&gt;12.&lt;br /&gt;#include &lt;stdio.h&gt;#include &lt;conio.h&gt; main() {   int n, m, max=0;   clrscr();   printf("n="); scanf("%d", &amp;n);   printf("m="); scanf("%d", &amp;m);   do     {       if (n%10 &gt; m%10) max=max*10+n%10;       else max=max*10+m%10;       n=n/10;       m=m/10;     }   while (n!=0  m!=0);   printf("Numarul final este: %d\n", max);   getch();  }&lt;br /&gt;13.&lt;br /&gt;#include &lt;conio.h&gt;#include &lt;stdio.h&gt;#include &lt;math.h&gt;main() { struct elev { char nume[30]; float nota; }; struct elev lista[50]; int n, i; float med=0; sqrt(4); clrscr(); printf("Nr de elevi="); scanf("%d", &amp;n); for(i=0;i&lt;n; i="0;" nota="); scanf(" numele="); scanf("&gt;=med) printf("%s\n", lista[i].nume); getch(); }&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28477131-116880423459886590?l=coco-cosmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://coco-cosmin.blogspot.com/feeds/116880423459886590/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28477131&amp;postID=116880423459886590' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28477131/posts/default/116880423459886590'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28477131/posts/default/116880423459886590'/><link rel='alternate' type='text/html' href='http://coco-cosmin.blogspot.com/2007/01/7.html' title=''/><author><name>coco-cosmin</name><uri>http://www.blogger.com/profile/02377136064025620772</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28477131.post-116880411495311490</id><published>2007-01-14T11:48:00.000-08:00</published><updated>2007-01-14T12:00:36.823-08:00</updated><title type='text'></title><content type='html'>14.dif.#include &lt;stdio.h&gt;#include &lt;conio.h&gt;main()            {   int i, j, n, m, v1[20], v2[20], gasit, poz=0, v3[20];   clrscr();         printf("n="); scanf("%d", &amp;n);   for (i=0;i&lt;n;i++)     {       printf("v1[%d]=", i); scanf("%d", &amp;v1[i]);     }                printf("m="); scanf("%d", &amp;m);   for(i=0;i&lt;m;i++)     {       printf("v[%d]=", i); scanf("%d", &amp;v2[i]);     }   for (i=0;i&lt;n;i++)     {       gasit=0;       for(j=0;j&lt;m;j++)       if(v1[i]==v2[j])         {           gasit=1;           break;         }       if (gasit==0)         {           v3[poz]=v1[i];           poz++;         }     }   n=poz;   printf("Diferenta:\n");   for (i=0;i&lt;n;i++)     printf("%d\n", v3[i]);   getch();}&lt;br /&gt;14.b.int.#include &lt;stdio.h&gt;#include &lt;conio.h&gt; main()            {   int i, j, n, m, v1[20], v2[20], gasit, poz=0, v3[20];   clrscr();         printf("n="); scanf("%d", &amp;n);   for (i=0;i&lt;n;i++)     {       printf("v1[%d]=", i); scanf("%d", &amp;v1[i]);     }               printf("m="); scanf("%d", &amp;m);   for(i=0;i&lt;m;i++)     {       printf("v[%d]=", i); scanf("%d", &amp;v2[i]);     }   for (i=0;i&lt;n;i++)     {       gasit=0;       for(j=0;j&lt;m;j++)         if(v1[i]==v2[j])           {             gasit=1;             break;           }         if (gasit==1)           {             v3[poz]=v1[i];             poz++;           }     }   n=poz;   printf("Intersectia:\n");   for (i=0;i&lt;n;i++)     printf("%d\n", v3[i]);   getch();}&lt;br /&gt;14.c.reun.#include &lt;stdio.h&gt;#include &lt;conio.h&gt;main()            {   int i, j, n, m, v1[20], v2[20], gasit, poz, v3[20];   clrscr();         printf("n="); scanf("%d", &amp;n);   for (i=0;i&lt;n;i++) m="); scanf(" i="0;i&lt;m;i++)" poz="n;" i="0;i&lt;m;i++)" gasit="0;" j="0;j&lt;n;j++)" gasit="1;" gasit="="0)" n="poz;" i="0;i&lt;n;i++)"&gt;#include &lt;stdio.h&gt; #include &lt;math.h&gt; main() {   int i, x, j, n, a, p=1, s=0, p1=1;   clrscr();   printf("Gradul polinomului este:"); scanf("%d", &amp;n);   printf("x="); scanf("%d", &amp;x);   printf("a="); scanf("%d", &amp;a);   s=s+a;   for (i=1;i&lt;=n;i++)     {       printf("a="); scanf("%d", &amp;a);       for (j=1;j&lt;=i;j++)         p=p*x;       p1=a*p;       p=1;       s=s+p1;     }   printf("P(x)=%d\n",s);   getch();}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28477131-116880411495311490?l=coco-cosmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://coco-cosmin.blogspot.com/feeds/116880411495311490/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28477131&amp;postID=116880411495311490' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28477131/posts/default/116880411495311490'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28477131/posts/default/116880411495311490'/><link rel='alternate' type='text/html' href='http://coco-cosmin.blogspot.com/2007/01/14.html' title=''/><author><name>coco-cosmin</name><uri>http://www.blogger.com/profile/02377136064025620772</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28477131.post-114821614448561038</id><published>2006-05-21T05:54:00.000-07:00</published><updated>2006-05-21T05:57:18.966-07:00</updated><title type='text'></title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/blogger/101/3018/1600/Picture.0.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://photos1.blogger.com/blogger/101/3018/320/Picture.0.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Clasa a IV-a I, 1990&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28477131-114821614448561038?l=coco-cosmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://coco-cosmin.blogspot.com/feeds/114821614448561038/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28477131&amp;postID=114821614448561038' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28477131/posts/default/114821614448561038'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28477131/posts/default/114821614448561038'/><link rel='alternate' type='text/html' href='http://coco-cosmin.blogspot.com/2006/05/clasa-iv-i-1990.html' title=''/><author><name>coco-cosmin</name><uri>http://www.blogger.com/profile/02377136064025620772</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
