Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

comvertir a java

import os
os.system("cls")
#Entrada
unidades = int(input("Ingrese las unidades adquiridas: "))
punitario = int(input("Ingrese el precio unitario: "))

#proceso
icompra = unidades * punitario
descuento1 = icompra * 0.15
icomprat = icompra - descuento1
descuento2 = icompra * 0.15
icomprat = icomprat - descuento2
descuentot = descuento1 + descuento2
#salida
print("El importe de la compra es de: S/", round(icompra,1))
print("El descuento es de: S/", round(descuentot,1))
print("El importe a pagar es de: S/", round(icomprat,1))
Comment

PREVIOUS NEXT
Code Example
Java :: how many return values can a method hava java 
Java ::         System.out.println("Welcone to GeeksforGeeks"); 
Java :: how to get the length of a jagged array java 
Java :: zombie testing java 
Java :: how do you create a txt file in java 
Java :: dividing numbers using method 
Java :: java scanner use all symbols as delimiter 
Java :: java get if contains else 0 
Java :: program to calculate and return the sum of distance between the adjacent numbers in an array of positive integer java 
Java :: java lexographic 
Java :: ResultSet rs = ps.executeQuery() 
Java :: <selector xmlns:android="http://schemas.android.com/apk/res/android<item android;drawable="@drawable/bluebtn" android: state_enabled="false"/ 
Java :: java list to jsonelement 
Java :: java method 
Java :: UserRedirectRequiredException: A redirect is required to get the users approval spring boot 5 security 
Java :: connect 2 package in android 
Java :: Java Public Access Modifier package one 
Java :: barcode design in postgresql 
Java :: reset android studio settings windows 
Java :: What is the name of the Android function that is used to update the UI (user interface) from a background thread? 
Java :: java.lang.nullpointerexception (no error message) 
Java :: javax.annotation.PreDestroy cannot be found by org.eclipse.e4. 
Java :: java code to input non blank string 
Java :: adding entity to calenderfx 
Java :: functionality of predicate functional interface in java 
Java :: Java Static Top-level Class 
Java :: android studio java catch empty button 
Java :: I/System.out: ep: android.os.NetworkOnMainThreadException 
Java :: how much epsom salt should strawberries need 
Java :: Run the ls command in the terminal to see the uncompiled .java file 
ADD CONTENT
Topic
Content
Source link
Name
9+8 =