#include <stdio.h>
#include <dos.h>
#include <conio.h>
int main()
{
float sales, salary;
clrscr();
gotoxy(22, 10);
printf("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");
gotoxy(22, 11);
printf("X X");
gotoxy(22, 12);
printf("X X");
gotoxy(22, 13);
printf("X X");
gotoxy(22, 14);
printf("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");
gotoxy(25, 11);
printf("Enter sales in dollars: ");
scanf("%f", &sales);
salary = 200 + (sales * .09);
gotoxy(25, 12);
printf("Salary is: %.2f", salary);
getch();
return 0;
}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter