Help using c++ #C++ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Help using c++ #C++

Create a timer program that will take the number of seconds as input, output the remaining time and countdown to 0. You need to output every number, including 0. Sample Input 5 Sample Input 5 4 3 2 1 0

31st Aug 2021, 1:52 PM
Fahad Sheriff
4 Answers
+ 2
Ankita Malik , you are showing a really nice code to help someone solving a task. we all appreciate this very much!  (this is my personal statement - but it is not to criticize someone !!) but there is an issue by giving a ready-made solution, when the op has not done and shown his attempt first. as a part of the community i believe that learning by doing is more helpful, than just using a shared solution. we should act more as a mentor.  it is a very successful way when we are giving hints and help, so that the op is able to solve his task by himself. it would be great if you are going to help us to keep sololearn what it is: ▪︎a unique place to learn (we are a "self" learning platform!) ▪︎an absolutely great community that is willing to help other people  ▪︎a great resource of people which has an unbelievable knowledge in coding and a long lasting experience ▪︎a place to meet people and to discuss with them all the possible points of view thanks for your understanding
31st Aug 2021, 2:06 PM
Pariket Thakur
Pariket Thakur - avatar
31st Aug 2021, 1:53 PM
Pariket Thakur
Pariket Thakur - avatar
+ 1
HrCoder , Ohh actually I'm new here 😶! I opened the community section and found this question . Then I answered ! I didn't know about the rules sorry 👀
31st Aug 2021, 2:24 PM
Ankita Malik
Ankita Malik - avatar
0
Int i,j; Printf("Enter the number of seconds :"); scanf("%d",j); for (i=j; i<=0; i++){ Printf("remaining time" , i); }
31st Aug 2021, 2:02 PM
Ankita Malik
Ankita Malik - avatar