|
Lessons -
CENG 101 Computer Programming I
|
|
Administrator tarafından yazıldı.
|
|
Perşembe, 15 Haziran 2006 13:50 |
/************************************/ /* */ /* AHMET FARUK BİŞKİNLER */ /* */ /* C COMPUTER PROGRAMMING */ /* */ /* LESSON */ /* */ /* PHYSICS 01020406 */ /* */ /* COPYRIGHT © 2003-2005 */ /* by */ /* AHMET FARUK BİŞKİNLER */ /* */ /* */ /* http://ahbis.blogspot.com */ /* http://afb.picom.com.tr */ /* */ /* All Rights Reserved */ /* */ /************************************/ #include <stdio.h> int main() { float salary=200,com,cou=0;
printf("Enter Sales In Dollars (-1 To End):"); scanf("%f",&com);
while (com!=-1) { printf("Salary is: $%.2f",200+((9*com)/100)); printf("\n\nEnter Sales In Dollars (-1 To End):"); scanf("%f",&com); }
if (cou==0) printf("No Commission So Your Salary is $200\n");
return 0;
}
|
|
Son Güncelleme: Cumartesi, 13 Ocak 2007 23:37 |