HELP ME PLEASE do-while

Hi Everyone, i'm newbie at C++

Can anyone help me to make coding in the end the results show like this...

Insert date = 20\12\1910
Insert date = 20\12\1920
Insert date = 12\2\1980
Insert date = 15\6\2020
Insert date = 0\0\0 -- this program automatically end --

-- and it's continues to : --

the oldest date up above is = 20\12\1910


thank you for before..
Show us your work. We're not a homework service.
You need to post code if you want us to take a look at it. And also:

http://www.cplusplus.com/forum/beginner/1/

(The rules of the forum)
Last edited on
This is example of my coding: need help please

#include<stdio.h>
#include<conio.h>
#include<windows.h>

int main(){

int a,b,c;
int z1,z2,z3;

do{


printf("Insert datel = \n"),scanf("%d/%d/%d",&a,&b,&c);

if (a>z1 && b>z2 && c>z3)
{
z1=a,z2=b,z3=c;
}

}
while (a!=0&&b!=0&&c!=0);

printf("the oldest date up above is = %d/%d/%d \n",z1,z2,z3);

system("Pause");
}
1. That is C code. This is a C++ forum.
2. What do you need help with, exactly? Are you getting errors? It's hard to diagnose the problem when all you tell us is that you need help.
@packetpirate

Can you help me with this C program?

i want to make coding with the end coding results it's show like this :
"""""""""""""""""""""""""""""""""
Enter a date (mm/dd/yy) : 3/6/08
Enter a date (mm/dd/yy) : 5/17/07
Enter a date (mm/dd/yy) : 6/3/07
Enter a date (mm/dd/yy) : 0/0/0

5/17/07 is the earliest date
"""""""""""""""""""""""""""""""

this is example of my coding can someone fix my coding?, so in the end it can launch like the example


#include<stdio.h>
#include<conio.h>
#include<windows.h>

int main(){

int a,b,c;
int z1,z2,z3;

do{


printf("Insert datel= \n"),scanf("%d/%d/%d",&a,&b,&c);

if (a>z1 && b>z2 && c>z3)
{
z1=a,z2=b,z3=c;
}

}
while (a!=0&&b!=0&&c!=0);

printf("the earliest date up above is = %d/%d/%d \n",z1,z2,z3);

system("Pause");
}
Topic archived. No new replies allowed.