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

What course should I take after doing diploma in plastic engineering?

Those who complete the course can go with further study programs such as B. Tech or B.E in Plastic Technology/engineering. Higher education programs such as M. Tech in plastic technology enable the candidates...
Kunj
What is the payment for hourly basis?
Depends on your knowledge in subject
Sangeetha N.

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

Ask a Question

Related Lessons

QA/QC Civil Engineering Schmidt hammer (video tutorial
Schmidt Hammer QA/QC tutorial from Techshore Inspection Service, Kochi Schmidt hammer: Swiss hammer/rebound hammer invented by Ernst Schmidt in 1948, a Swiss engineer, is a mechanical device used to...
T

Techshore Inspection Services Kerala

0 0
0

Tracked Robots
Tracks (or treads) are what tanks use. Although tracks do not provide added “force” (torque), they do reduce slip and more evenly distribute the weight of the robot, making them useful for...

Pressure of a liquid
A

Arnab Bhattacharjee

0 0
0

Want to expertise in your subjects, here is a tip ?
The best way to expertise in your subject is by having the practical knowledge of it. Once your concepts are clear in practicals, then while studying you'll understand the difference between ideal and...

SMART WORK LEADS TO SUCCESS
To solve any mathematical problem follow the steps as stated below. Read the problem clearly to identify the information provided and the part to be solved. Represent the data or information you read...

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