Do. While Loop in C Language
We have discussed while loop in our earlier post. There is another loop for same purpose is do.while. Do.. While is an exit control loop.
From Basic to the Best
We have discussed while loop in our earlier post. There is another loop for same purpose is do.while. Do.. While is an exit control loop.
There is a special operator ‘?’ (called Conditional or ternary) in C Language that is used like if. Syntax Example Here if x is greater
Loops are used to execute repeated statements. While is a simple loop (iteration) that is used like Execution of any loop depends on three points.
For Decision making we can use if statement in C Language. If statement is used for conditional execution of statements. Basic Syntax of is: Now
To perform any Arithmetic Operation between two variables or values arithmetic operators are used. + Addition or Unary Plus – Subtraction or Unary Minus *
Whenever you want to store some temporary data, then variables are used, like x=20, area=7.3. Here x and area are variable names. In C language
To get input we can use scanf() or gets() functions. gets() is used only for String data type. scanf() can be used for all data
There are some color functions those can be used for colored output in c language. First you have to set colors using textcolor(COLOR) function. You
During earlier post we have come to know that printf() is used to display output to the screen. There are some another functions also that
There are some basic rules those are to be remembered before writing your first C Program For easy start with C Programming we will need