Evaluare utilizator: 1 / 5

Steluță activăSteluță inactivăSteluță inactivăSteluță inactivăSteluță inactivă
 

Operatorii aritmetici sunt utilizați pentru a realiza operații matematice simple.

Operatori aritmetici:

Operator Semnificație Exemple
+ Adunare x + y
- Scădere x - y
* Înmulțire x * y
/ Împărțire x/y
% Modulo – furnizează restul împărțirii  x%y

Notă: Operatorul modulo se aplică numai operanzilor întregi (de tip int).

O expresie matematică poate conține operatori, variabile, constante, literali, valori pentru a efectua diverse operații matematice și, în final, furnizează o valoare. Mai jos, aveți un simplu exemplu de expresie matematică:

10 + 5 = 15

+ - este operatorul de adunare

10, 5 – sunt valori denumite operanzi

15 – valoarea furnizată de această espresie

De asemenea, în expresii matematice putem utiliza variabile, iar valoarea rezultată să fie atribuită un unei variabile:

int sum, x, y;

x = 10;

y = 5;

sum = x + y;

Exemplu de cod:

//Declarare variabile

int x, y, adunare, scadere, inmultire, modulo;

double impartire;

//Initializare variabile

x = 12;

y = 5;

//Operatii aritmetice

adunare = x + y;

scadere = x - y;

inmultire = x * y;

impartire = (double)x / y;

modulo = x % y;

//Afisarea rezultatelor

Console.WriteLine("Adunare = " + adunare);

Console.WriteLine("Scadere = " + scadere);

Console.WriteLine("Inmultire = " + inmultire);

Console.WriteLine("Impartire = " + impartire);

Console.WriteLine("Modulo = " + modulo);

 

Files:
operatori_aritmetici
Date 2015-02-05 Filesize 278.34 KB Download 118

Comentarii

0 #481 JanisOArcega 19-12-2016 00:41
Oh my goodness! Awesome article dude! Thanks a lot, However I
am encountering difficulties with your RSS.
I don't know exactly why I am just unable to join it.
Could there be anybody else getting the same RSS issues?

Anybody who knows the perfect solution will you kindly respond?
Thanx!!

My web site ... JanisOArcega
Raportează către un administrator
0 #480 MeganUSecker 18-12-2016 23:13
It's an awesome article created for each of the internet people; they may
get advantage from this I am sure.

My page - MeganUSecker
Raportează către un administrator
0 #479 AlecFBurce 18-12-2016 23:07
Hi, yup this article is genuinely good and I have learned lot of things from it on the topic of blogging.

thanks.

Also visit my homepage; AlecFBurce
Raportează către un administrator
0 #478 AlecFBurce 18-12-2016 23:05
Hi, yup this article is genuinely good and I have learned lot of things from it on the topic of blogging.

thanks.

Also visit my homepage; AlecFBurce
Raportează către un administrator
0 #477 TorrieGViers 18-12-2016 16:26
I feel the admin of the site is genuinely spending so much time
in support of his site, since here every stuff is quality based stuff.


my website; TorrieGViers
Raportează către un administrator
0 #476 CleoUDildine 16-12-2016 08:17
I'm really impressed with your writing skills as neatly as using the layout to the blog.
Is the fact this a paid topic or did you modify it yourself?
Anyway keep in the excellent good quality writing,
it's uncommon to discover a nice blog such as this one today..


Also visit my page; CleoUDildine
Raportează către un administrator
0 #475 SherikaTHohn 16-12-2016 06:56
I don't have any idea how I wound up here, however i
thought this post was great. I don't know what you are about but certainly you're going to a famous blogger
in the event you aren't already ;) Cheers!



My web page SherikaTHohn
Raportează către un administrator
0 #474 MellieDRoger 16-12-2016 06:29
I don't realize how I ended up here, nevertheless i thought
this post was good. I tend not to know who you are but definitely you might be attending a famous blogger
when you aren't already ;) Cheers!

Feel free to visit my web blog :: MellieDRoger
Raportează către un administrator
0 #473 HanhAMccaw 16-12-2016 02:21
Generally I tend not to read post on blogs, however I want to claim that
this write-up very forced me to look at and do it! Your writing style is surprised me.
Thanks, quite nice article.

my blog :: HanhAMccaw
Raportează către un administrator
0 #472 DongSDustman 16-12-2016 01:54
Excellent post. I had been checking continuously this weblog and
I am impressed! Extremely helpful info particularly the ultimate
section :) I look after such information much. I used to be seeking this certain information for any
very long time. Thanks and best of luck.

my weblog DongSDustman
Raportează către un administrator
0 #471 MattLPrach 16-12-2016 01:35
Hi there just wanted to provide you with a quick heads up.
The text with your content are running off of the screen in Opera.

I'm unclear should this be a formatting issue or something connected to internet browser compatibility but
I thought I'd post to let you know. The style and design look wonderful though!
I do hope you have the problem solved soon. Kudos

Here is my page - MattLPrach
Raportează către un administrator
0 #470 JodyTBurlock 16-12-2016 01:03
If some one wishes expert view concerning operating a blog afterward i advise
him/her to visit see this webpage, Continue the good job.

Feel free to surf to my web blog - JodyTBurlock
Raportează către un administrator
0 #469 EraHTonini 16-12-2016 00:44
hey there and thank you for your info - I've certainly acquired
something new from right here. I have done however expertise some technical points by using this website, as I experienced to reload the site lots of times previous to I
was able to get it to load properly. I had been wondering should your hosting is OK?
Not too I am just complaining, but sluggish loading instances times will often affect your placement in the search engines and can damage
your high-quality score if ads and marketing with Adwords.
Well I am adding this RSS to my email and could be aware of a lot much more of your respective fascinating content.
Ensure you update this again soon.

Also visit my web blog - EraHTonini
Raportează către un administrator
0 #468 StarNRagno 16-12-2016 00:25
I don't even recognize how I ended up here, however I figured this post
was previously great. I will not realize who you are
but definitely you might be going to a famous blogger once you aren't already.
Cheers!

my page; StarNRagno
Raportează către un administrator
0 #467 MiloVKnoff 16-12-2016 00:24
Hi, I think your online site might be having browser compatibility problems.
When I evaluate your internet site in Safari, it seems fine however when opening in I.E., it provides some overlapping issues.
I simply wanted to provide you with a quick heads up!
Aside from that, fantastic website!

My web blog - MiloVKnoff
Raportează către un administrator
0 #466 LeshaSHigh 16-12-2016 00:21
No matter whether some one searches for his required thing, so he/she wishes
to be available that in depth, therefore that thing is maintained over here.


My weblog; LeshaSHigh
Raportează către un administrator
0 #465 ElmerEKalert 16-12-2016 00:21
If you are intending for most excellent contents like I actually do,
only pay a visit this internet site every single day for the
reason that it gives quality contents, thanks

Have a look at my site ... ElmerEKalert
Raportează către un administrator
0 #464 JulesTPituch 15-12-2016 23:45
I loved as much as you'll receive carried out right here. The sketch is tasteful, your authored subject matter stylish.
nonetheless, you command get bought an shakiness over that you wish be delivering the following.
unwell unquestionably come more formerly again since
exactly the same nearly very often inside case you shield this increase.



my page - JulesTPituch
Raportează către un administrator
0 #463 AbdulNWharry 15-12-2016 23:37
I for all time emailed this site post page for all my friends, as if like to read
it then my friends will too.

Feel free to surf to my weblog :: AbdulNWharry
Raportează către un administrator
0 #462 LesterVCogen 15-12-2016 21:01
If some one needs expert view regarding having a blog afterward i suggest
him/her to pay a visit this internet site, Continue the fastidious work.


Also visit my website: LesterVCogen
Raportează către un administrator
0 #461 JeanieKRival 15-12-2016 20:53
Wonderful blog! Do you possess any tips and hints for aspiring writers?
I'm hoping to start out my website soon but I'm just a little lost on everything.
Do you suggest starting with a free platform like Wordpress
or take a paid option? There are many choices available that I'm completely overwhelmed ..

Any tips? Thank you!

Also visit my web site JeanieKRival
Raportează către un administrator
0 #460 MargotTGabby 15-12-2016 18:26
Wow that was unusual. I just wrote an incredibly long comment but after I clicked submit my
comment didn't appear. Grrrr... well I'm not writing all that over again. Regardless, just wanted to
say great blog!

my site MargotTGabby
Raportează către un administrator
0 #459 RuthaPWallis 15-12-2016 16:21
Howdy! I'm at work browsing your blog from my new apple iphone!
Just wanted to say I love reading your blog and look forward to all your posts!
Carry on the outstanding work!

Also visit my web site :: RuthaPWallis
Raportează către un administrator
0 #458 RisaARoets 15-12-2016 15:54
Hi there to all, how is the whole thing, I think every one is getting more from this web page, and your views are nice
in favor of new people.

Also visit my blog; RisaARoets
Raportează către un administrator
0 #457 NickiePSisko 15-12-2016 15:28
Fantastic blog! Are you experiencing any hints for aspiring
writers? I'm hoping to start my own, personal website
soon but I'm a bit lost on everything. Can you propose beginning from a free of
charge platform like Wordpress or take a paid option? There are numerous options out there that I'm totally overwhelmed ..
Any tips? Bless you!

Here is my web page :: NickiePSisko
Raportează către un administrator
0 #456 ArthurPLindo 15-12-2016 15:22
I tend not to even recognize how I finished up below,
however I assumed this post had been good. I don't recognize who you're however certainly you're
visiting a famous blogger for individuals who aren't already.

Cheers!

my webpage :: ArthurPLindo
Raportează către un administrator
0 #455 TravisDOllis 15-12-2016 15:20
Hello, Neat post. There exists a problem with your site in web explorer, may check this?
IE nonetheless is the marketplace chief and a big a part of
other people will leave out your fantastic writing
due to this concern.

Feel free to surf to my site: TravisDOllis
Raportează către un administrator
0 #454 SidHOrzell 15-12-2016 14:44
I feel this really is one of many this type of lot vital info in my opinion. And i'm
satisfied reading your article. But would like to observation on some
common issues, The internet site style is ideal, the articles
is the truth is great : D. Good task, cheers

Feel free to visit my homepage :: SidHOrzell
Raportează către un administrator
0 #453 GraigHAluise 15-12-2016 14:13
I'm really impressed along with your writing skills along
with together with the layout on your own weblog. Is it a
paid theme or did you customize it yourself? In any case maintain the excellent quality writing, it's rare to
view a great blog such as this one nowadays.

Feel free to visit my site :: GraigHAluise
Raportează către un administrator
0 #452 DavisLMulkey 15-12-2016 13:55
I am actually glad to glance at this internet site posts which contains lots of helpful data, thanks for providing such statistics.


Feel free to visit my weblog - DavisLMulkey
Raportează către un administrator
0 #451 MarkusDBryer 15-12-2016 13:48
You can certainly see your enthusiasm in the work you write.
The arena hopes for even more passionate writers like you who aren't afraid to mention the way they believe.
Constantly follow your heart.

my web page; MarkusDBryer
Raportează către un administrator
0 #450 SandiDRoss 15-12-2016 13:46
Good day! Do you use Twitter? I'd like to follow you if that would be ok.
I'm undoubtedly enjoying your blog and look forward to new updates.


Here is my blog SandiDRoss
Raportează către un administrator
0 #449 CalebSSkyers 15-12-2016 13:05
Saved being a favorite, I really like your web site!


Also visit my page - CalebSSkyers
Raportează către un administrator

Comments are now closed for this entry