Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
digitodentrodenumero
#include <stdio.h> #include <stdlib.h> int main(void) { long long N; short d; int cifra,i; printf("Introduce un valor entero = "); scanf(" %lld", &N); printf("Introduce un valor (0-9) = "); scanf(" %hd", &d); i = 0; while(N > 0) { cifra = N%10; if (cifra == d) { i = 1; } N = N/10; } if(i == 1) printf("\nEl numero contiene la cifra (%hd).\n", d); else printf("\nEl numero no contiene la cifra(%hd).\n", d); return 0; }
run
|
edit
|
history
|
help
0
Command Expressions in Gnu C
Print Micro Seconds
day 3 integer manipulation
Volume of a square pyramid With functions
Is const really const? Yes
quicksort guía 4
assignment 3 celina
18BCE2182 MIDTERM PART-B CRITICAL
co_1
B_141205_funciones