what is the program of do while that ...
you can type any number but when u type zero it will stop the program?
thanks for the help
peace!
CloudZELL91
0
Newbie Poster
Recommended Answers
Jump to PostYou sound incredibly lazy. Seeing as this is a trivial program, try it yourself first.
Jump to PostReplace
++x;
withscanf("%d", &x);
and your logic is reasonably sound. Otherwise it's broken because the loop will never end[1].
[1] It will end, but not in a well-defined way.
All 7 Replies
Narue
5,707
Bad Cop
Team Colleague
CloudZELL91
0
Newbie Poster
CloudZELL91
0
Newbie Poster
Narue
5,707
Bad Cop
Team Colleague
CloudZELL91
0
Newbie Poster
Narue
5,707
Bad Cop
Team Colleague
CloudZELL91
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.