{I am going write the c program but before you need a c compiler(software).there are a lot of compilers(software) for windows 7 like Code::Blocks,dev c++ . Download dev c++ its free and install it in your computer.open dev c++ go to file-->new-->source file.}
#include<stdio.h>
#include<conio.h>
int main(void)
{
struct data
{
int mounth;
int day;
int year;
};
struct data today;
today.mounth = 1;
today.day = 1;
today.year = 2000;
printf("The date is %i / %i / %i ",today.mounth,today.day,today.year);
getch();
return 0;
}
For beginners
{After typing this program go to execute-->compile & run-->a window will pop-up-->give file name:(anything u like)-->save as type: c source files-->click save.}
No comments:
Post a Comment