Press "Enter" to skip to content

C – Arithmetic Operations

Writing code with C language, we use some arithmetical terms. Thanks to these terms , we can do easily arithmetical operations. In this essay , I will make program , using with the arithmetical terms. Some Arithmetic terms and their meanings ;

To increase the count by 1: number++ , ++number , number+=1

To sum the number with another number: number+=5 , number = number + 5

To decrease the count by 1: number – – , – -number , number – =1

To reduce the number with another number : number -=5 , number = number – 5

To multiply or divide a number by a number : number = number * 5 , number = number / 5

Screen Output :

In above , In code syntax we use some terms like \n .There are terms in C like that. Some of the terms and their meanings ;

\n : Bottom line down.

\t : Leave a tab space.

\r : It makes a new line.

\\  : \ Makes this sign on the screen.

/* */ : Make comment lines.

// : Make a comment line . Comment lines do not appear on the screen.

I will make a program, using with the while loops . Program will take numbers from the user and count the taken numbers.

Screen Output ;

 

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *