Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Numero de veces digito
//Title of this code //gcc 4.9.1 #include <stdio.h> int main(void) { short a, d, i, j=0, B; a = 442; d= 1; for(i=0; a>=10; i++){ B=a%10; a=a/10; if(B==d){ j++; } } if (a==d){ j= j+1; } printf("%hd",j); return 0; }
run
|
edit
|
history
|
help
0
Spring 2017 Project 2 v.02
CpointfunProd
Greeting
Bitex
Loop-worksharing
printf
Assignment 5
Switch
C programming example for a Person struct and typedef (from ECE 2534)
structure1