C Programming Practical 1
C Programming Practical 1
Programming Lab
Problem Definition:
rite a straight line programmme to display the birthdate entered by the user on
W
separate lines as date, month and year
#include <stdio.h>
int main() {
scanf("%d", &date);
scanf("%d", &month);
scanf("%d", &year);
return 0;
}
Output:
Conclusion:
I n this practical we studied about the use of printf and scanf functions. We also learned
abouttheconceptofformatspecifiers.Here,%dwasusedastheformatspecifiertospecify
the numerical value of date, month and year.