SLN

#include <stdio.h> #include <conio.h> void main(void) { int in,imax; printf("Nhap vao day so : "); scanf("%ld", &in); imax = in % 10; while (in != 0) { if ((in % 10) > imax) { imax = in % 10; } in = in / 10; } printf("So lon nhat %d", imax); getch(); }

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.