60 likes | 156 Views
Learn to input and display a floating number in C programming. The code includes scanf and printf functions for user interaction.
E N D
UNIVERSIDAD AUTONOMA METROPOLITANA Programa “Número flotante” Ing. Arturo Díaz Vargas Departamento de Sistemas División de Ciencias Básicas e Ingeniería
#include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { float A; system("PAUSE"); return0; }
#include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { float A; printf("\nDame el numero flotante A\n"); system("PAUSE"); return0; }
#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; }
#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; }
#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; }