User
Pass
2FA
 
 

Doua probleme in C++ pentru BAC.

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> Trash -> Homework zone
Author Message3374
*0ranGe ! extrem

[I ❤ MY POLO!]



Status: Offline
(since 11-12-2017 13:06)
Joined: 01 Jul 2007
Posts: 11419, Topics: 191
Location: Romania

Reputation: 683.4
Votes: 117

   
Post Posted: 27-11-2010, 19:21:29 | Translate post to: ... (Click for more languages)

Cum zice si titlul, trebuiesc rezolvate doua probleme in C++, sunt probleme de bac si nu nu sunt pentru mine ci pentru cineva, apreciez ajutorul si promit sa dau reputatie daca ma ajutati, thx.

Download PDF:

http://dl.transfer.ro/transfer_ro-27nov-673fc368ae0.zip

0 0
  
Back to top
View user's profile Send private message
ion

[prin vacante]



Status: Offline
(since 10-12-2018 11:49)
Joined: 30 Jan 2008
Posts: 7503, Topics: 333
Location: Romania

Reputation: 1770.2
Votes: 191

 
Post Posted: 27-11-2010, 20:53:57 | Translate post to: ... (Click for more languages)

1. 28

2.
a) n=1 deci se afiseaza NU
b) 20,11,0
c)
Code:
  n=0;
  do{
  scanf("%d",&x);
  if (x!=0){
            if(x%5==0) n=n+1;
                else   n=n-1;
            }
  }while (x!=0);
  if (n==0) printf("DA");
      else printf("NU");




d)
n<-0
┌cat timp x≠0
│ citeºte x (numãr natural)
│┌dacã x≠0 atunci
││┌dacã x%5=0 atunci
│││ n<-n+1
│││altfel
│││ n<-n-1
││└■
│└■
└■
┌dacã n=0 atunci
│ scrie DA
│altfel
│ scrie NU
└■


sau alta varianta:


n<-0
┌pentru (;x≠0;)
│ citeºte x (numãr natural)
│┌dacã x≠0 atunci
││┌dacã x%5=0 atunci
│││ n<-n+1
│││altfel
│││ n<-n-1
││└■
│└■
└■
┌dacã n=0 atunci
│ scrie DA
│altfel
│ scrie NU
└■



<- e sageata



0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
Ina

[Mentally Stable]



Status: Offline
(since 10-02-2014 10:16)
Joined: 11 Feb 2010
Posts: 128, Topics: 15
Location: Romania

Reputation: 230.9
Votes: 8

Post Posted: 28-11-2010, 11:30:03 | Translate post to: ... (Click for more languages)

Cum ti-a dat 28 la primu punct ? -


0 0
  
Back to top
View user's profile Send private message
eM
[Banned user]


Banned


Status: Offline
(since 21-05-2016 23:00)
Joined: 27 Jul 2009
Posts: 8918, Topics: 345
Location: 127.0.0.1

Reputation: 264.1
Votes: 385

    Battletag: postrow.ID_BATTLE_NET} 
Post Posted: 28-11-2010, 11:32:55 | Translate post to: ... (Click for more languages)

Rãspunsul la prima problemã este a. 28.75.



0 0
  
Back to top
View user's profile Send private message
Ina

[Mentally Stable]



Status: Offline
(since 10-02-2014 10:16)
Joined: 11 Feb 2010
Posts: 128, Topics: 15
Location: Romania

Reputation: 230.9
Votes: 8

Post Posted: 28-11-2010, 11:36:51 | Translate post to: ... (Click for more languages)

Tu cum ai aflat em,ca raspunsu e A ?
Btw. N-are cum sa fie A raspunsul corect pentru ca variabilele x, y ºi z sunt întregi



0 0
  
Back to top
View user's profile Send private message
eM
[Banned user]


Banned


Status: Offline
(since 21-05-2016 23:00)
Joined: 27 Jul 2009
Posts: 8918, Topics: 345
Location: 127.0.0.1

Reputation: 264.1
Votes: 385

    Battletag: postrow.ID_BATTLE_NET} 
Post Posted: 28-11-2010, 11:47:15 | Translate post to: ... (Click for more languages)

Ina wrote:
Tu cum ai aflat em,ca raspunsu e A ?


w00t? Pãi am calculat 7+20+7*5/20 = 28.75




0 0
  
Back to top
View user's profile Send private message
Ina

[Mentally Stable]



Status: Offline
(since 10-02-2014 10:16)
Joined: 11 Feb 2010
Posts: 128, Topics: 15
Location: Romania

Reputation: 230.9
Votes: 8

Post Posted: 28-11-2010, 11:55:43 | Translate post to: ... (Click for more languages)

Da,ai dreptate,acolo ti-a dat 28.75,dar dat fiind ca "/" arata catul,raspunsul e 28.


0 0
  
Back to top
View user's profile Send private message
*0ranGe ! extrem

[I ❤ MY POLO!]



Status: Offline
(since 11-12-2017 13:06)
Joined: 01 Jul 2007
Posts: 11419, Topics: 191
Location: Romania

Reputation: 683.4
Votes: 117

   
Post Posted: 28-11-2010, 14:55:27 | Translate post to: ... (Click for more languages)

There you go, mersi -


0 0
  
Back to top
View user's profile Send private message
art.work
[Banned user]


Banned


Status: Offline
(since 30-03-2011 20:37)
Joined: 24 Mar 2010
Posts: 2930, Topics: 150
Location: HI5 CURCANILOR

Reputation: 37
Votes: 88

 
Post Posted: 28-11-2010, 15:09:45 | Translate post to: ... (Click for more languages)

eM wrote:
Ina wrote:
Tu cum ai aflat em,ca raspunsu e A ?


w00t? Pãi am calculat 7+20+7*5/20 = 28.75


nu e matematica pura , fiecare simbol are functiile lui.



0 0
  
Back to top
View user's profile Send private message

  Topic locked


Topic is closed, you cannot post any messages in it anymore




 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> Trash -> Homework zone  


The time now is 02-06-2020, 19:45:32
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password


This message appears only once, so
like us now until it's too late ! :D
x