05 by clamitze

VIEWS: 81 PAGES: 1

									#include<iostream.h> #include<conio.h> void ciframare(long int numar) {int max,cifra; max=0; while(numar) {cifra=numar%10; if(cifra>max) max=cifra; numar=numar/10;} cout<<max; cout<<endl;} void main() {clrscr(); long int numarcitit; do {cin>>numarcitit; ciframare(numarcitit);} while(numarcitit!=0); getch();}


								
To top