Skip to content

Instantly share code, notes, and snippets.

@hyperion0201
Created September 6, 2017 14:37
Show Gist options
  • Save hyperion0201/338d54315e64a0809125dd325c151ed1 to your computer and use it in GitHub Desktop.
Save hyperion0201/338d54315e64a0809125dd325c151ed1 to your computer and use it in GitHub Desktop.
C algorithm declare first num character in a Int
#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