Search
 
SCRIPT & CODE EXAMPLE
 

C

faire une facture en langage c

#include<stdio.h>
main(){
     int ancien, nouveau;
     const int taxe = 10;     /* taxe 10% */
     float  prixTotal;
     const float prixUnitaire = 0.6;

     printf("Rentrer ancien index: "); scanf("%d",&ancien);
     printf("Rentrer nouvel index"); scanf("%d",&nouveau);
     prixTotal= (nouveau - ancien)*prixUnitaire * (1 + taxe/100.);
     printf("Total a payer: %7.2f
", prixTotal);
}
Comment

PREVIOUS NEXT
Code Example
C :: c linked list 
C :: set all pins as output for loop 
C :: ecrire programme en C une fonction remplir tableau et un fonction inverser 
C :: signed and unsigned in c 
C :: cifras de un numero en c 
C :: powershell list big files 
C :: square in c 
C :: looping through an array in c 
C :: how to print % in c 
C :: how to join an array of strings c 
C :: convert video to gif with ffmpeg 
C :: fwrite c 
C :: how to debug a segmentation fault in c 
C :: c program for assignment operator 
C :: Install valet-linux 
C :: c convert float to int 
C :: c for result 
C :: Command to compile and execute a c file program consecutively 
C :: c hello word 
C :: leer string en c 
C :: how to link flexslider 
C :: c timespec 
C :: deepak 
C :: Program to Find Swap Numbers Using Temporary Variable 
C :: gnuplot rectangle border color 
C :: BEE/URI problem no 1181 solution in C 
C :: C #define preprocessor 
C :: unity read text file line by line 
C :: online c compiler with mpi 
C :: Sampoo C programming 
ADD CONTENT
Topic
Content
Source link
Name
2+6 =