Can anyone help me resolve with C program??

Can someone 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");
}
a) Your formula for earliest date is incorrect.
b) In the first iteration of your loop, z1, z2 and z3 have no value (not initialized). Set it to an initial value before the loop begins.
c) Don't use system() commands!
Topic archived. No new replies allowed.