Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- //Najmal element
- int mini(int x, int y, int z)
- {
- if(x<y)
- {
- y=x;
- }
- if(x<z)
- {
- z=x;
- }
- return x;
- }
- int main()
- {
- int n,i,x,y,z;
- scanf("%d ", &n);
- for(i=0;i<n;i++)
- {
- scanf("%d%d%d", &x, &y, &z);
- printf("%d", mini(x,y,z));
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement