Program to calculate sales man salary

0
8
#include<stdio.h>
#include<conio.h>
void main()
{
     float amount, sal, price; 
     int qty;
     clrscr();
     printf("\n Enter qty and price \n");
     scanf("%d%f", &qty, &price);
     amount=qty*price;
     sal=amount*0.20+1000;             /* 20 % bonus and 1000 Rs fixed */
     printf(" Total amount = %.2f\n",amount);
     printf(" Total salary = %.2f\n",sal);   
     getch();
}
     Output:
     Enter qty and price
     90 50
     Total amount = 4500.00
     Total salary = 1900.00

The distance travelled by a vehicle with initial velocity u meters per second. acceleration a meter per second² , and time t in seconds is given by d=ut+½ at². The following program finds the distance travelled by the vehicle.

 

:

Program to calculate sales man salary Program to calculate sales man salary in c Program to calculate sales man salary in c language c Program to calculate sales man salary write a Program to calculate sales man salary in c language write a program to calculate sales man salary

LEAVE A REPLY

Please enter your comment!
Please enter your name here