/*WAP to write code of fake torjan virus using structure*/
#include<stdio.h> #include<conio.h> #include<string.h> struct date { int day,month,year; char path[100]; }d; int main() { printf("Enter Day"); scanf("%d",&d.day); printf("Enter Month"); scanf("%d",&d.month); printf("Enter Year"); scanf("%d",&d.year); printf("Your Date is successfully saved\n\n\tDate\t%d/%d/%d",d.day,d.month,d.year); printf("Enter Path of file"); scannf("%s",&d.path); getch(); return(0); }
No comments:
Post a Comment