Write a program in 'C' to enter sales man name and sales. Find and print commission where comm = 4% on sales
#include< 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
0 comments:
Post a Comment