algorithm in c language
How to Write an Algorithm in Programming Language
Keep in mind that algorithm is a step-by-step process.
Depending upon programming language, include syntax where necessary.
Include variables and their usage.
If they are any loops, try to give sub number lists.
Try to give go back to step number if loop or condition fails.
Use jump statement to jump from one statement to another.
Try to avoid unwanted raw data in algorithm.
Use break and stop to terminate the process.
Get user input.
Check if the entered username and password match the pre-stored credentials in the database.
If true, set session and redirect your user to the success page.
If false, print a failure message, redirect on the same login page and ask user to re-enter the credentials.
QuestionHow do I write an algorithm that 7 is greater than 5?nicholasz2510 Gaming, Travel, and MusicCommunity AnswerThe syntax can vary over different languages, but to write the conditional 7 is greater than 5 would most likely by simply be this: 7 > 5.Thanks!
QuestionIs there any way to understand this easier? I'm 15 and still trying to understand the concepts.wikiHow ContributorCommunity AnswerI just started programming and my college professors are very vague and make understanding the concepts pretty hard. Your best bet is to keep looking up the terms on Google, that's what I've been doing, and it works to a degree.Thanks!
QuestionHow do I make an algorithm of the sum of two numbers?Adam BlalockCommunity AnswerTo add two numbers in a programming language, you just use a "+" between them. In Python (a programming language), it would look like: x = 10, y = 13; print x + y.Thanks!
An algorithm that reads two integers, determines whether the first is a multiple of the second ?
How do I create an algorithm to add two fractions?
How to write algorithm of draw a face using applet in java?
How can I write an algorithm that finds the difference between 2 numbers entered from 100?
How can I write an algorithm to convert numbers from one base to another?
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
- Remove unwanted comments.
- Use proper logic
- Use fast calculating iterations
- Make it small
- Make it efficient
- Have a clear plan before creating the algorithm
- Remember to check time and space complexity
- Don't forget to terminate or else the code will fail
In other languages:
Español: , Deutsch: , Português: , Bahasa Indonesia: , Русский: , Nederlands: , Tiếng Việt: , ไทย: , 中文: , العربية: , Français:
Thanks to all authors for creating a page that has been read 216,398 times.
Video: Intro to Algorithms: Crash Course Computer Science #13
How to Get Into Reading a Book
How to Be the Best Teen Girl You Can Be
Linguine and Clam Sauce
The Prettiest Craft You Can Make This Easter
Spicy Corn on the Cob
3 Chic Ways French Women Do the Ugly Sneaker Trend
Kate Middleton Has Reportedly Been Giving Meghan Markle Fashion Advice
The Best Celebrity Hair Moments of2016
What You Can Learn from Your Parents Marriage(s)
Sausage and Polenta
Paul Joe Unveils Loose Silhouettes for SpringSummer 2019
Date: 12.12.2018, 16:32 / Views: 65583