Your SlideShare is downloading. ×
Michael
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Introducing the official SlideShare app

Stunning, full-screen experience for iPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Michael

165
views

Published on

fermin toro

fermin toro

Published in: Education

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
165
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. República Bolivariana de Venezuela Universidad Fermín Toro Decanato de Ingeniería Escuela de Telecomunicaciones Estudiante Valera, Michael C.I 22306859 Cabudare, Diciembre del 2013
  • 2. #include <stdio.h> #include <conio.h> #include <macth.h> float primero; float segundo; float resultado_suma; float resultado_mult; void operaciones(); float suma(float a, float b); float multiplicacion(float a, float b); main(){ char op; while(op!='x' && op!='X'){ clrscr(); printf("Presione 1 para iniciar el programa n"); printf("Presione 'x' para Salir n"); op=getchar(); switch(op){ case '1':
  • 3. operaciones(); break; } } return 0; } float suma(float a, float b) { float x; x = a + b; return x; } float multiplicacion(float a, float b) { float x; x = a * b; return x;
  • 4. } void operaciones() { float a; float b; clrscr(); printf("Introduzca el primer numero: "); scanf("%f",&a); printf("Introduzca el segundo numero: "); scanf("%f",&b); resultado_suma = suma(a,b); resultado_mult = multiplicacion(a,b); printf("La multiplicacion de los dos numeros es: %f n",resultado_mult); printf("La suma de los dos numeros es: %f n",resultado_suma); }