Created
September 6, 2017 14:37
-
-
Save hyperion0201/338d54315e64a0809125dd325c151ed1 to your computer and use it in GitHub Desktop.
C algorithm declare first num character in a Int
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
void Process(int a){ | |
int n; | |
for (int i = 10; i <=a;){ | |
a = a/10; | |
} | |
printf("Chu so dau tien cua so a la : %d ", a); | |
} | |
void main() { | |
int a; | |
printf("Nhap vao so a : "); | |
scanf("%d", &a); | |
Process(a); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment