Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*=================================================[Program creat de Grigore Iulian]==================================================
- ===========================================================[Clasa a X a A]============================================================*/
- a.
- 2
- d.
- #include <iostream.h>
- #include <conio.h>
- int main()
- {
- unsigned int n, k, i, c;
- unsigned x;
- cout<<"n=";cin>>n;
- k=9;
- for(i=1;i<=n;i++)
- {
- cout<<"x=";cin>>x;
- c=(x/10)%10;
- if(c<k)
- {
- k=c;
- }
- }
- cout<<"Final = "<<k;
- getch();
- }
- c.
- citeste n
- k<-9
- i<-1
- cat timp(i<=n)
- {
- citeste x
- c<-[x/10]%10
- daca c<k atunci
- {
- k<-c
- }
- i++;
- }
- scrie k
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement