0
how to print a number from 10 to 1. Using do while loop. But The Initial value shoudl be 1
14 Answers
+ 1
print 11-x
+ 8
@Abdul Ahad, I think you've already received helpful answer in this thread
:)
https://www.sololearn.com/Discuss/850211/?ref=app
+ 1
thankewwwwww Sirrr 😍😘😘😘😘😘Love U ummmmmmmmahhh 😍😍😘😘😘😘 It's Done
0
can you Write a program on. it plx?
0
I tried aloot but didn't solved 😢😢
I want to learn but what if I failed to solved 😓😓
that was assignment 🙁🙁😢 plz help
0
#include<iostream>
#include<conio.h>
using namespace std;
int main ()
{
int x=1;
do
{ cout<<x<<endl;
x++;
}
while(x<=10);
getch();
}
the output is 1 2 3 4 5 6 7 8 9 10 I want that output should come from 10 to 1
0
noooo
the assigning value must be 1.
and end value must b 10.
0
let me check
0
hi can you hlep to teach please
- 1
Assign 1 to variable, enter loop, print number, increase number, and while test for exit condition to loop or leave loop.
- 1
Sure. But, that does nothing for you. Do you really want to learn the language or are you just look for a grade?
- 1
Post a link to code and I'll help.
- 1
Ok so assign 10 at top and loop until 1 subtracting each time.