asm
| |
auto
| |
bool
| |
break
| |
case
| |
catch
| |
char
| |
class
| |
const
| |
const_cast
| |
continue
| |
default
| |
delete
| |
do
| |
double
| |
dynamic_cast
| |
else
| |
enum
| |
explicit
| |
extern
| |
false
| |
float
| |
for
| |
friend
| |
goto
| |
if
| |
inline
| |
int
| |
long
| |
mutable
| |
namespace
| |
new
| |
operator
| |
private
| |
protected
| |
public
| |
register
| |
reinterpret_cast
| |
return
| |
short
| |
signed
| |
sizeof
| |
static
| |
static_cast
| |
struct
| |
switch
| |
template
| |
this
| |
throw
| |
true
| |
try
| |
typedef
| |
typeid
| |
typename
| |
union
| |
unsigned
| |
using
| |
virtual
| |
void
| |
volatile
| |
while
|
public class Main { public static void main(String[] args) { float x,a,e; Scanner teclado = new Scanner(System.in); System.out.println("Coeficiente de X:"); x=teclado.nextInt(); System.out.println("Término independiente:"); a=teclado.nextInt(); if(a==0) System.out.println("No es una ecuación de primer grado"); else { e=-a/x; System.out.println("La raíz es=" +e); } } ...
Comentarios
Publicar un comentario