Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@programmingfaster0226
Created February 20, 2018 21:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save programmingfaster0226/3511f4cdba1a68c2c5e6dc4aa0eb696e to your computer and use it in GitHub Desktop.
Save programmingfaster0226/3511f4cdba1a68c2c5e6dc4aa0eb696e to your computer and use it in GitHub Desktop.
proggrammingfaster.com
#include<stdio.h>
#include<conio.h>
int main()
{
int a,b,c;
int*ptra=&a,*ptrb=&b,*ptrc=&c;
printf("enter three values");
scanf("%d%d%d",ptra,ptrb,ptrc);
printf("the values of a=%d\n b=%d\n c=%d\n",*ptra,*ptrb,*ptrc);
if((*ptra>*ptrb && *ptra>*ptrc))
printf("biggest number=%d",*ptra);
else if((*ptrb>*ptra && *ptrb>*ptrc))
printf("biggest number =%d",*ptrb);
else
printf("biggest number=%d",*ptrc);
getch();
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment