12. • @Override
• public boolean onCreateOptionsMenu(Menu menu) {
• // Inflate the menu; this adds items to the action bar
if it is present.
• getMenuInflater().inflate(R.menu.main, menu);
• return true;
• }
• public void calcular (View v){
• TextView r=(TextView) findViewById
(R.id.textView2);
• String sol="";
• int num=1;
• while (num<=10){
18. • ESTE PROGRAMA NO ES NADA DIFICIL SOLO SIGUE
LOS PASOS Y ENTENDERAS RAPIDAMENTE YA QUE
PUES SI SIGUES LOS PASO NOSE TE ARA TAN
DIFICIL ESTE ESPERO Y TE HAYA GUSTADO ESTE
PROGRAMA.