Antivirus detected my EXE

0 Ass Cold · October 11, 2014
I just created a simple calculator and I am using 360 total security as my Antivirus.
After the run and build this code below it delete my EXE, do I need to add some code to prevent anti-virus from detected my Application or this is normal?

#include <stdio.h>
#include <stdlib.h>

int radius, area;

int main(void)
{
    printf("Enter radius (i.e. 10): ");
    scanf("%d", &radius);
    area = (int) (3.14159 * radius * radius);
    printf( "\n\nArea = %d\n", area);
    system("pause");
    return 0;
}

Post a Reply

Replies

Oldest  Newest  Rating
0 Mathias Frits Rørvik · October 20, 2014
Try removing the system("pause") line. Don't use system("pause"), it's bad.
  • 1

C

107,313 followers
About

One of the most popular languages of all time.

Links
Moderators
Bucky Roberts Administrator