Results 1 to 11 of 11

Thread: C++

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date: Nov:2010
    Location:
    Posts: 19

    C++

    , ?

    #include<stdio.h>
    #define PI 3.14

    void main()
    {
    float a,b;
    printf("\n\t\t Vavedi dve chisla:");
    scanf("%f%f",&a,&b);
    if(a>b)
    printf("\n\t Po-golqmoto chislo e a=%f\n",a);
    else
    if(a==b)
    printf("\n\t dvete chisla sa ravni i sa sas stoinost: %.2f\n",a);
    else
    printf('\n\t Po-golqmoto chislo e b=%.2f\n",b);
    }

  2. #2
    rootkit's Avatar
    Join Date: May:2008
    Location:
    Posts: 3,699
    Gigabyte B150M-D3H; Intel Core i5-6500@3.2GHz;KINGSTON 2x4GB DDR4 2133MHz HyperX FURY;DEEPCOOL DA500-M Modular; GIGABYTE GeForce GTX 970 4GB G1 GAMING OC EDITION; Gigabyte g1 Gaming R9 380 4GB - RIP

  3. #3
    Registered User
    Join Date: Oct:2008
    Location:
    Posts: 95


    , :
    Click image for larger version. 

Name:	Diagram1.png 
Views:	2641 
Size:	16.5 KB 
ID:	45683

  4. #4
    AMD fan EvilDevil_'s Avatar
    Join Date: Dec:2010
    Location:
    Posts: 1,275
    Quote Originally Posted by PhrozenCrew View Post
    :
    Click image for larger version. 

Name:	Diagram1.png 
Views:	2641 
Size:	16.5 KB 
ID:	45683
    , C. xristakis .

    Laa shay'a waqi'un moutlaq bale kouloun moumkine.
    Nulla &#233; reale, tutto &#233; lecito.

  5. #5
    Registered User
    Join Date: Nov:2010
    Location:
    Posts: 19
    , , . 1,2 !

  6. #6
    N/A Demoman's Avatar
    Join Date: Sep:2005
    Location:
    Posts: 3,098
    Quote Originally Posted by xristakis View Post
    ...
    scanf("%f%f",&a,&b);
    ...
    ?

  7. #7
    Registered User
    Join Date: Nov:2010
    Location:
    Posts: 19
    !
    AutoFlowchart . ?
    Last edited by xristakis; 8th December 2011 at 15:47.

  8. #8
    Registered User
    Join Date: Nov:2010
    Location:
    Posts: 19
    ?

    #include<stdio.h>
    main ()
    {
    int ch,index,chnum;
    while((ch=getchar()) !="\n")
    {chnum=ch %26;
    index=0;
    while (index++<(30-chnum))
    putchar (" ");
    index=0;
    while(index++<(2*chnum+1))
    putchar (ch);
    puchar ("\n");
    }
    }
    Last edited by xristakis; 10th December 2011 at 22:41.

  9. #9
    rootkit's Avatar
    Join Date: May:2008
    Location:
    Posts: 3,699
    e! , , .
    Gigabyte B150M-D3H; Intel Core i5-6500@3.2GHz;KINGSTON 2x4GB DDR4 2133MHz HyperX FURY;DEEPCOOL DA500-M Modular; GIGABYTE GeForce GTX 970 4GB G1 GAMING OC EDITION; Gigabyte g1 Gaming R9 380 4GB - RIP

  10. #10
    Registered User
    Join Date: Nov:2015
    Location: sofia
    Posts: 1
    - :
    .

    #include <iostream>

    using namespace std;

    int main()
    {
    unsigned int A[5][5];
    int i,j;

    for(i=0;i<5;i++)
    for(j=0;j<5;j++)
    {
    cout<<"A["<<i+1<<"]["<<j+1<<"]= ";
    cin>>A[i][j];
    }
    cout<<endl;

    for(i=0;i<5;i++)
    for(j=0;j<5;j++)
    if(A[i][j]%2==0&&(A[i][j]/2)%2==1)
    cout<<"A["<<i+1<<"]["<<j+1<<"]= "<<A[i][j]<<endl;
    cout<<endl;

    return 0;
    }

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |