From 3a124abd1925b7dcdfa01b05b4593ed30d3cbd0d Mon Sep 17 00:00:00 2001 From: SINISTER-code <72219493+SINISTER-code@users.noreply.github.com> Date: Mon, 5 Oct 2020 17:34:16 +0530 Subject: [PATCH] Update while loops.cp --- DSA/while loops.cp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/DSA/while loops.cp b/DSA/while loops.cp index b755964..64d63c3 100644 --- a/DSA/while loops.cp +++ b/DSA/while loops.cp @@ -10,8 +10,13 @@ using namespace std; int main() { - //write code here - cout<<"blah"; + + int num=1; //initializing the variable + do //do-while loop + { + printf("%d\n",2*num); + num++; //incrementing operation + }while(num<=10); return 0; }