1 / 6

Floating Number Program by Ing. Arturo Díaz Vargas

Learn to input and display a floating number in C programming. The code includes scanf and printf functions for user interaction.

angelo
Download Presentation

Floating Number Program by Ing. Arturo Díaz Vargas

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. UNIVERSIDAD AUTONOMA METROPOLITANA Programa “Número flotante” Ing. Arturo Díaz Vargas Departamento de Sistemas División de Ciencias Básicas e Ingeniería

  2. #include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { float A; system("PAUSE"); return0; }

  3. #include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { float A; printf("\nDame el numero flotante A\n"); system("PAUSE"); return0; }

  4. #include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { float A; printf("\nDame el numero flotante A\n"); scanf("%f",&A); system("PAUSE"); return 0; }

  5. #include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { float A; printf("\nDame el numero flotante A\n"); scanf("%f",&A); printf("\nSe imprimira el numero flotante de A el cual es:\n"); system("PAUSE"); return 0; }

  6. #include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { float A; printf("\nDame el numero flotante A\n"); scanf("%f",&A); printf("\nSe imprimira el numero flotante de A el cual es:\n"); printf("\nA=%f\n\n\n\n",A); system("PAUSE"); return0; }

More Related