About saving in C programming

Joined
Oct 21, 2009
Messages
4
Reaction score
0
Can any one could develop the below program and give me some help to me hoe to save the console output of this to the respective job no: as mentioned below

#include<stdio.h>
#include<conio.h>
main()
{
long int j;
char n[100],p[100],r[100],a[100],m[100],b[100],l[100],d[100];
printf("\nEnter the Job No:");
scanf("%ld",&j);
printf("\nEnter the Name of the party:");
scanf("%s",&n);
printf("\nEnter the Camera Name:");
scanf("%s",&p);
printf("\nEnter the Camera Model:");
scanf("%s",&m);
printf("\nEnter the Faults:");
scanf("%s",&r);
printf("\nEnter the Camera Body Number:");
scanf("%s",&b);
printf("\nEnter the Lens Number:");
scanf("%s",&l);
printf("\nEnter any accessories provided with it:");
scanf("%s",&a);
printf("\nEnter the Date of Acceptance:");
scanf("%s",&d);
printf("\n Details:");
printf("\n ========\n\n");
printf("Job No: %ld\n",j);
printf("Name: %s\n",n);
printf("Camera Name: %s\n",p);
printf("Camera Model: %s\n",m);
printf("Faults: %s\n",r);
printf("Body Number: %s\n",b);
printf("Lens Number: %s\n",l);
printf("Accessories: %s\n",a);
printf("Date: %s\n",d);
getch();
}

Please Hep me guys!!!

Regards
K.Dhivaakar
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top