ProgIng - Programación en Ingeniería
Loading...
Searching...
No Matches
Ejemplo001.c File Reference
#include <stdio.h>
Include dependency graph for Ejemplo001.c:

Go to the source code of this file.

Functions

int main (int argc, char *argv[])

Function Documentation

◆ main()

int main ( int argc,
char * argv[] )

Definition at line 3 of file Ejemplo001.c.

4{
5 int a = 10, b = -250, n = 4;
6 printf("%d\t%d\n", a, b);
7 printf("%+d\t%+d\n", a, b);
8 printf("%05d\t%05d\n", a, b);
9 printf("%0*d\t%0*d\n", 5, a, 5, b);
10 printf("%0*d\t%0*d\n", n, a, n, b);
11 return 0;
12}