home *** CD-ROM | disk | FTP | other *** search
/ CD Actual Thematic 10: University / CDAT10.iso / TUTORIALES / CursoC / ejemplos / operad1.c < prev    next >
Encoding:
C/C++ Source or Header  |  1997-07-13  |  252 b   |  15 lines

  1. /* Uso de los operadores aritmĂ©ticos */
  2.  
  3. #include <stdio.h>
  4.  
  5. main() /* Realiza varias operaciones */
  6. {
  7.     int a=1,b=2,c=3,r;
  8.     r=a+b;
  9.     printf("%d + %d = %d\n",a,b,r);
  10.     r=c-a;
  11.     printf("%d - %d = %d\n",c,a,r);
  12.     b++;
  13.     printf("b + 1 = %d",b);
  14. }
  15.