summaryrefslogtreecommitdiff
path: root/testapp/c_cpp_files/sample.c
diff options
context:
space:
mode:
Diffstat (limited to 'testapp/c_cpp_files/sample.c')
-rwxr-xr-xtestapp/c_cpp_files/sample.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/testapp/c_cpp_files/sample.c b/testapp/c_cpp_files/sample.c
deleted file mode 100755
index 660f862..0000000
--- a/testapp/c_cpp_files/sample.c
+++ /dev/null
@@ -1,20 +0,0 @@
-#include<stdio.h>
-
-void main(int argc , char * argv[])
-{
- int i,sum=0;
-
-/* if(argc!=3)
- {
- printf("you have forgot to type numbers.");
- exit(1);
- }
-*/
- printf("The sum is : ");
-
- for(i=1;i<argc;i++)
- sum = sum + atoi(argv[i]);
-
- printf("%d",sum);
-
-}