C Programming Textbook Solutions
Sunday, 22 May 2016
Chapter 3 (Programming Projects)
1.
#include<stdio.h>
int main(void)
{
int d,m,y;
printf("Enter a date (mm/dd/yyyy): ");
scanf("%d/%d/%d", &m, &d, &y);
printf("%d%.2d%.2d", y, m, d);
return 0;
}
2.
No comments:
Post a Comment
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment