Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
1Activity
0 of .
Results for:
No results containing your search query
P. 1
Guia1

Guia1

Ratings: (0)|Views: 25|Likes:
Published by Alexandriita Lopez
Programacion en C
Programacion en C

More info:

Published by: Alexandriita Lopez on Dec 06, 2012
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOCX, PDF, TXT or read online from Scribd
See more
See less

04/08/2014

pdf

text

original

 
 
Ejercicio1
Agregar las operaciones aritméticas básicas.
SUMA.
#include <stdio.h>#include <stdlib.h>int main(){int n1=0,n2=0,sum;printf("Digite el primer numero\n");scanf("%d",&n1);printf("Digite el segundo numero\n");scanf("%d",&n2);sum=(n1+n2);printf("El resultado de la suma es:\n %d\n\n",sum);system("PAUSE");return 0;}
 
RESTA.
#include <stdio.h>#include <stdlib.h>int main(){int n1=0,n2=0,res;printf("Digite el primer numero\n");scanf("%d",&n1);printf("Digite el segundo numero\n");scanf("%d",&n2);res=(n1-n2);printf("El resultado de la resta es:\n %d\n\n",res);system("PAUSE");return 0;}
 
MULTIPLICACION.
#include <stdio.h>#include <stdlib.h>int main(){int n1=0,n2=0,multi;printf("Digite el primer numero\n");scanf("%d",&n1);printf("Digite el segundo numero\n");scanf("%d",&n2);multi=(n1*n2);printf("El resultado de la multiplicacion es:\n %d\n\n",multi);system("PAUSE");return 0;}

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->