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

Blog Categories
Trending Courses

CodeIgniter

Regular : 45 Days

Fastrack : 20 Days

Crash : 10 Days

Advance Digital Marketing Expert Course

Regular : 6 Months

Fastrack : 3 Months

Crash : 2 Months

React JS

Regular : 45 Days

Fastrack : 25 Days

Crash : 15 Days

Laravel

Regular : 45 Days

Fastrack : 20 Days

Crash : 10 Days

Front End Developer

Regular : 6 Months

Fastrack : 4 Months

Crash : 2 Months

Python

Regular : 30 Days

Fastrack : 15 Days

Crash : 10 Days

Related Blogs

Request For Demo