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

Hi I want to gain knowledge in RCC structures, estimation and costing, I do not have degree in civil but I deal in real estate so if anyone can provide this would be appreciated. I do have basic understanding of RCC and structure steel
RCC structure is the concrete structure reinforced by steel twisted rod. It is composite material. As it made by mixing of cement, stone chips, sand in perticular ratio and water. The rod diameter rod...
Profile Photo
Varun
Why you have not allow to tutor to choose multiple classes categories i.e. from 6 to 12th?
The taste of each fruit is different because it is create in different environment. Similarly, each and every person are expert in a particular field in which they completed his education and acknowledge their ability.
Profile Photo
Pankaj
What is meant by ferrari's solution in maths?
Solution of quartic equations.
Profile Photo
Kiran

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

Ask a Question

Related Lessons

Anything could be understood, if learned in proper way, and by good coach.
Anything could be understood, if learned in proper way, and by good coach. Every body has there own way and pace of grasping things, so mentor/coach should be in sync (neither too fast nor too slow) with...
Profile Photo

basic concepts in java
IntroductionSun Microsystems created the Java language. Java is a case-sensitive programming language, like C++. Java is an Object Oriented Programming (OOP) structure. Java is a class based programming...
A

Amarnath Reddy

0 0
View Comments0

Material Science and Metallurgy
Hello, I would like to show very first how to visualize the subject. For this, we should have total concentration. To avoid obstacle coming in front of us, we will follow the following steps. Close your...
Profile Photo

Mechanical Designing, Is it all about knowing CAD ?
Whenever, I get chance to meet and interview any mechanical designer, I could see they will be more interested to showcase themselves knowing more about a different mechanical CAD software it could be...
Profile Photo

What to read for Reading Comprehension ?
If somebody puts a gun to your head today and asks you to predict what questions will come in CAT, you would be safe in saying - that come what may - Reading Comprehension (RC) is bound to be part of the...
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