Input Basic Salary and Print Gross Salary C Program

How to write a c programto input basic salary and print gross salary in C Programming ?



Solution:
//Program to input basic salary and print gross salary.
#include<stdio.h>
#include<conio.h>

void main()
{
float salary;

clrscr();

printf("Enter basic salary: ");
scanf("%f", &salary);
printf("The gross salary for the basic salary %f is: %f", salary, salary);

getch();
}


Learn More :