How to a program by using condition and how to apply it?

Asked by Last Modified  

15 Answers

+1 Computer Engineering Diploma

Follow 0
Answer

Please enter your answer

Computer & Maths Wizard

If(condition) statement;
Comments

Computer Expert

You should use conditional statement i.e if else ,nested if ,switch case,looping etc depending on your program
Comments

Software Engineer as Lecturer

You want write a program using conditions, that's how I understood. I will write a simple C program for you with if-condition. int main() { int a=10; if(a==10) { printf("The value of A is 10\n"); } else { ...
read more
You want write a program using conditions, that's how I understood. I will write a simple C program for you with if-condition. int main() { int a=10; if(a==10) { printf("The value of A is 10\n"); } else { printf("The value of A is not equal to 10\n"); } return(0); } The above program checks whether A is 10 or not using if-condition and prints "The value of A is 10" if A=10 else it prints "The value of A is not equal to 10" . read less
Comments

Computer language and mathematics tutor

We can use condition in many instance. There are so many conditions in Java, for instance, "IF","Switch", nested If, IF ELSE. Example int a=10; if(a <20) { System.out.println("a is lesser than 20") } else { System.out.println("a is lesser than 20") }
Comments

Computer Science Expert

Every Computer language provides a support for Logical Condition checks,Loops,etc. Pick any language and can check how conditional handling is done. For more details or information feel free to contact me at ankit.mishra100 gmail.com
Comments

Sorry to let you down. My focus is in Civil Engineering only. Please refer other tutors for your answer.
Comments

Mathematics and computer science Professor with 17 years Teaching Experience

Its depend upon the Programs. there are several condition in C/C++. I mention the Syntax: 1. if(Condition) { Statement; } else { Statement;} 2. if(Condition) { Statement; } elseif(Condtion) { Statement;} 3. for(Initialization; Condition; Increment) { Statements;} 4. while(Condition) { Statement;} 5....
read more
Its depend upon the Programs. there are several condition in C/C++. I mention the Syntax: 1. if(Condition) { Statement; } else { Statement;} 2. if(Condition) { Statement; } elseif(Condtion) { Statement;} 3. for(Initialization; Condition; Increment) { Statements;} 4. while(Condition) { Statement;} 5. do{ Statements;} while(condition) If you go to refer Book: Yeswant Kanithkar C programming. read less
Comments

Computer Trainer

Please mention about which condition you are talking about. There are following conditional statements are there in C depending upon flow control i.e branching statements & looping statements. Branching statements 1.if 2.if-else 3.else-if 4.goto looping statements 1.while 2.for 3.do-while EX: if-else...
read more
Please mention about which condition you are talking about. There are following conditional statements are there in C depending upon flow control i.e branching statements & looping statements. Branching statements 1.if 2.if-else 3.else-if 4.goto looping statements 1.while 2.for 3.do-while EX: if-else statement if(a>b) { printf("a is greater"); else printf("b is greater"); } read less
Comments

Computer programming teacher

specify conditional statements if, else, while
Comments

sry my focus is mainly on ece subjects
Comments

View 13 more Answers

Related Questions

I want to become a expert in press tool and mould designing
May like to contact Nettur Technical Training Foundation (NTTF) for Tool Engineering course. Coimbatore, Dharwad, Gannavaram, Jamshedpur, Pune, Tellichery, Trivandrum, Tumkur, Gopalpur, Tuticorin, Pantnagar, Vellore and Malappuram.
Profile Photo
Kalyan
0 0
View Comments5
Numbers are stored and transmitted inside a computer in: a. binary form b. ASCII code form c. decimal form d. alphanumeric form
The computer understands the language of 0 and 1, which is called the binary form. Binary language is a machine-level language.
Profile Photo
Daksha Kacha P
how to become a first class gentlemen in ol sorts of lyf?
Always stay in learning mode,do not disrespect others And stay calm
Profile Photo
Kartikay
What's galvanic cell?
It is an electrochemical cell which converts the chemical energy of cell into electrical energy. It is also called a voltaic cell.
Profile Photo
Shankarashettigopi

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

N-Type Silicon
• Pentavalent impurities such as phosphorus, arsenic, antimony, and bismuth have 5 valence electrons. • When phosphorus impurity is added to Si, every phosphorus atom’s four valence electrons...
Profile Photo

Concept of transistor
Introduction to transistor Transistor is basic of modern electronics. We have two types of transistors. Bipolar junction transistor Unipolar junction transistor Transistor is a device made of...
Profile Photo

Polarization of Plane Waves
(a) Linear polarization A plane wave is linearly polarized at a fixed observation point if the tip of the electric-field vector at that point moves along the same straight line at every instant of time. (b)...
Profile Photo

Integration by parts.
Integration by parts can be applied to certain problems which are in the form of: ∫ f(x) g(x) dx Put either one as 'u' and other one as 'dv' then solve using the formula ∫ u dv = uv - ∫...
Profile Photo

Smart Work Instead Hard Work.
Yes, " Hard work never Goes Without Reward " But, Excellency in learning outcome can be achieved by the following:- 1. Plan in advance, Plan in Detail, Keep all options open. choose the correct way...
Profile Photo

Recommended Articles

Quality education does not only help children to get a successful career and life, but it also hugely contributes to society. The formal education of every child starts from school. Although there are numerous schools, parents find it challenging to choose the right one that would fit their child. It is difficult for them...

Read full article >

With the current trend of the world going digital, electronic renaissance is a new movement that is welcomed by the new generation as it helps makes the lives of millions of people easier and convenient. Along with this rapidly changing movement and gaining popularity of Internet, e-Learning is a new tool that emerging...

Read full article >

While schools provide formal education to the children, the home is where they start learning about things informally. Parents think that schools will take the initiative to educate their children. Well, this is partially true, as parents also play an essential role in bringing up their child. For the development of particular...

Read full article >

With the mushrooming of international and private schools, it may seem that the education system of India is healthy. In reality, only 29% of children are sent to the private schools, while the remaining head for government or state funded education. So, to check the reality of Indian education system it is better to look...

Read full article >

Looking for Engineering Diploma Tuition ?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you