Search
 
SCRIPT & CODE EXAMPLE
 

C

cifras de un numero en c

/* Programa: Dígitos de un número entero */

#include <conio.h>
#include <stdio.h>

int main()
{
    int n;

    printf( "
   Introduzca un n%cmero entero: ", 163 );
    scanf( "%d", &n );

    if ( n >= -9 && n <= 9 )
        printf( "
   Tiene 1 d%cgito.", 161 );
    else
        if ( n >= -99 && n <= 99 )
            printf( "
   Tiene 2 d%cgitos.", 161 );
        else
            if ( n >= -999 && n <= 999 )
                printf( "
   Tiene 3 d%cgitos.", 161 );
            else
                printf( "
   Tiene m%cs de 3 d%cgitos.", 160, 161 );

    getch(); /* Pausa */

    return 0;
}
Comment

PREVIOUS NEXT
Code Example
C :: search sorted array c 
C :: chevront de vlavier 
C :: do while loop in c 
C :: how to insert elements in and array and print it in c 
C :: c memcpy 
C :: access 2d array with pointer c 
C :: how to print % in c 
C :: algorithm for dequeue 
C :: insert image material ui 
C :: define constant c 
C :: c conventions 
C :: find sum of all odd numbers from 1 to n using for loop 
C :: mc dropout pytorch 
C :: example of header file in c 
C :: convert python to c 
C :: 2 html 1 javascript 
C :: how to check file pointers in c 
C :: String to Integer (atoi) 
C :: how can i learn c game development 
C :: can torch light bring change in chemical reaction 
C :: creation of a thread 
C :: temperature sensor data 
C :: My name is c 
C :: pre-commit configuration 
C :: garbage collection and dangling reference 
C :: Odd-Even-inator with function in C 
C :: golang inline function definition 
C :: attiny pinout 
C :: how to declare 3dimensional arrays in wiring 
C :: Typecast Operator in C language 
ADD CONTENT
Topic
Content
Source link
Name
9+5 =