---
title: "Discussion on \"Difference between for loop and do while loop\" | Hashnode"
description: "Discussion on \"Difference between for loop and do while loop\". FOR LOOP=The loop in which statements get executed if and only if the condition is satisfied..\nSyntax: for(i=0:i<n;i++)\n{\n//Code\n}\nDO WHILE LOOP=The loop in which statements executed at least one time even though if the condition is not satisfied..\nR..."
url: "https://hashnode.com/posts/difference-between-for-loop-and-do-while-loop/63be40d8b4669a536212b526"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Difference between for loop and do while loop](https://bhanu04.hashnode.dev/difference-between-for-loop-and-do-while-loop?utm_source=hashnode&utm_medium=feed)

FOR LOOP=The loop in which statements get executed if and only if the condition is satisfied.. Syntax: for(i=0:i<n;i++) { //Code } DO WHILE LOOP=The loop in which statements executed at least one time even though if the condition is not satisfied.. R...

Jan 11, 2023 · 1 min read · bhanu04.hashnode.dev  
Read the article

-   [#do-while-loop](https://hashnode.com/tag/do-while-loop)
-   [#coding](https://hashnode.com/tag/coding)
-   [#loops](https://hashnode.com/tag/loops)
-   [#for-loop](https://hashnode.com/tag/for-loop)

## Written by

[Bhanu Teja](https://hashnode.com/@Bhanu04)

@Bhanu04

  
[View profile](https://hashnode.com/@Bhanu04)

Android developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
