Files
courses/2024_Praxis_der_Programmierung/ue1/loesung/formatelemente.c
T
2024-11-14 13:11:04 +01:00

22 lines
337 B
C

/* formatelemente.c
*
* ACHTUNG: Enthaelt Fehler, die Sie bereinigen sollen!
*
*/
#include <stdio.h>
main()i {
int i = 66;
double x = .000007;
double y = 123.45;
printf("\ni:\n%d \n%o \n%x \n%X", i, i, i, i);
printf("\nx:\n%f \n%e \n%E \n%g \n%G", x, x, x, x, x);
printf("\ny:\n%g \n%G \n", y,y);
return 0;
}