Existing user? Sign in
Sign up
Games
Servers
Useful
User
Pass
2FA
Doua probleme in C++ pentru BAC.
Freakz Forum Index
->
Trash Bin
->
Trash
->
Homework zone
Author
Message
4571
*0ranGe ! extrem
[I ❤ MY POLO!]
Status: Offline
(since 11-12-2017 12:06)
Joined: 01 Jul 2007
Posts: 11419
,
Topics: 191
Location:
Romania
Reputation:
683.4
Votes
: 117
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
ion
[prin vacante]
Status: Offline
(since 10-12-2018 10:49)
Joined: 30 Jan 2008
Posts: 7503
,
Topics: 333
Location:
Romania
Reputation:
1770.2
Votes
: 191
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
Ina
[Mentally Stable]
Status: Offline
(since 10-02-2014 09:16)
Joined: 11 Feb 2010
Posts: 128
,
Topics: 15
Location:
Romania
Reputation:
230.9
Votes
: 8
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
eM
[Banned user]
Status: Offline
(since 21-05-2016 21:00)
Joined: 27 Jul 2009
Posts: 8918
,
Topics: 345
Location:
127.0.0.1
Reputation:
264.1
Votes
: 385
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
Ina
[Mentally Stable]
Status: Offline
(since 10-02-2014 09:16)
Joined: 11 Feb 2010
Posts: 128
,
Topics: 15
Location:
Romania
Reputation:
230.9
Votes
: 8
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
eM
[Banned user]
Status: Offline
(since 21-05-2016 21:00)
Joined: 27 Jul 2009
Posts: 8918
,
Topics: 345
Location:
127.0.0.1
Reputation:
264.1
Votes
: 385
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
Ina
[Mentally Stable]
Status: Offline
(since 10-02-2014 09:16)
Joined: 11 Feb 2010
Posts: 128
,
Topics: 15
Location:
Romania
Reputation:
230.9
Votes
: 8
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
*0ranGe ! extrem
[I ❤ MY POLO!]
Status: Offline
(since 11-12-2017 12:06)
Joined: 01 Jul 2007
Posts: 11419
,
Topics: 191
Location:
Romania
Reputation:
683.4
Votes
: 117
Posted: 28-11-2010, 14:55:27
| Translate post to:
... (
Click for more languages
)
There you go, mersi
0
0
Back to top
art.work
[Banned user]
Status: Offline
(since 30-03-2011 18:37)
Joined: 24 Mar 2010
Posts: 2930
,
Topics: 150
Location:
HI5 CURCANILOR
Reputation:
37
Votes
: 88
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
Topic locked
Topic is closed, you cannot post any messages in it anymore
Freakz Forum Index
->
Trash Bin
->
Trash
->
Homework zone
The time now is 01-02-2025, 15:04:56
Copyright info
Based on phpBB
ro
/
com
B
Login
I forgot my password
World of Warcraft
Login for more...
Download WoW 7.3.5
Misc
eSports
Achievements
Buy reputation with votes
Reputation trades
Forum rules
Ban list
Members list
User guide (FAQ)
World of Warcraft
View details