#include<stdio.h>
#include<conio.h>
int small(int *a, int *b, int *c);
void main()
{
int num1, num2, num3, smallnum;
clrscr();
printf("Enter the 3 numbers\n");
scanf("%d%d%d",&num1, &num2, &num3);
smallnum = small (&num1, &num2, &num3);
printf("Smallest number = %d", smallnum);
getch();
}
int small(int *a, int *b, int *c)
{
int result = *a;
if ( *a > *b)
result = *b;
if (result > *c)
result = *c;
return result;
}
Subscribe to:
Post Comments (Atom)
How to Answer "Do You Use AI?" in an Interview (Without Lying or Bragging) – 2026 Guide
How to Answer "Do You Use AI?" in an Interview (Without Lying or Bragging) – 2026 Guide Learn how to answer "Do you use AI?...
-
Date of Job Mela: November 12th 13th 2016 Venue: Karwar Medical College Time: 10.00 am Job Oppurtunity for all categories: Inform...
-
Walkin Interview in SLK Software Bangalore June 11th 12th 2011 Date: 11th and 12th June 2011 (Saturday and Sunday) Time: NA Venue: ...
No comments:
Post a Comment