1.
#include<stdio.h>
#define cash_flow 10
int main (int argc, char*argv[])
{
int
Total_commission, total_sale, target_rate;
printf("Enter
the total sale :");
scanf("%d",&total_sale);
target_rate
= atoi (argv[1]);
Total_commission
= (total_sale * 0.2 * target_rate) + cash_flow;
printf
("Total commission = %d", Total_commission);
return 0;
}
2.
#include<stdio.h>
int main (int argc, char*argv[])
{
printf("Copy the details in %s to %s at 23.59.59",argv[0],argv[1]);
return 0;
}
0 Comments
Post a Comment