Time Table in c language |Time table in c|

 C program to display time table

code:

#include<stdio.h>
int main()
{


/*to display timetable*/


printf("Date\t|\tDate\t |\tSub1\t|\tSub2\t|\tSub3|\n13.10.21|\tMonday\t |\tTam\t|\tEng\t|\tmath|\n14.10.21|\tTuesday\t |\tVbc\t|\tDpca\t|\tCs-l|\n15.10.21|\tWednesday|\tCom\t|\tTam\t|\tEng |\n16.10.21|\tThursday |\tcs-t\t|\tDpca\t|\tVbc |\n17.10.21|\tFriday\t |\tcom\t|\tMath\t|\tEng |");


return 0;

}


Explanation:

  • This program is not but displaying of timetable with perfect alignment 
  • In this I have used /*......*/ this is called as comment line
  • This comment line helps in readability.


Output:





Comments

Popular posts from this blog

Use of Backslash "\n" in C language

COHESION AND COUPLING material

Coding and Testing in software engineering