C Langauge Program to Calculate Sales Commision
Question: Write a C language program which ask users to input sales made by any sales man then claculate and print the commision of it at the rate of 5 % sales.#include <stdio.h>
void main()
{
long int sale;
float comm;
printf("Enter sales");
scanf("%ld",&sale);
comm=sale*0.05;
printf("commission=%f rs",comm);
}
Categories: c programming