Get Email Subscription

Enter your email address:

Delivered by FeedBurner

Thursday, December 31, 2009

Write a program in 'C' to enter sales man name and sales. Find and print commission where comm = 4% on sales



#include<stdio.h>
main()
{
char name [25];
float comm, sales;
printf("Enter name of sales man and sales\n");
scanf("%s %f", name, &sales);
comm = sales*4/100;
printf("The commission is %f", comm);
return(0);
}

For eg :-

Output :-
Enter name of sales man and sales
Fransis 10000
The commission is 400.000000

Related Posts by Categories



0 comments:

About This Blog

Lorem Ipsum

  © Blogger templates Newspaper III by Ourblogtemplates.com 2008

Back to TOP