Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- /*
- Pedir la introduccion de un número positivo */
- int main(int argc, char *argv[])
- {
- int num;
- printf("Teclea un numero :\n");
- scanf("%d" , &num );
- if ( num < 0 ){
- printf("Debería haber introducido un numero positivo \n ");
- }
- else if ( num % 10 == 0)
- {
- printf("El numero es multiplo de 10\n");
- }
- else
- {
- printf("El numero no es multiplo de 10 \n");
- }
- system("PAUSE");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment