Advertisement
clari-g

apunte1-ej4

May 7th, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.35 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main(){
  5.     float a;
  6.     float b;
  7.     float suma;
  8.  
  9.     printf("Ingrese el primer numero: ");
  10.     scanf("%f", &a);
  11.     printf("Ingrese el segundo numero: ");
  12.     scanf("%f", &b);
  13.  
  14.     suma=(a*2)+(b*b);
  15.  
  16.     printf("Suma del doble del primero mas el cuadrado del segundo: %.2f", suma);
  17.  
  18.     getch();
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement