Horje
convert c program to c ++  online Code Example
convert c program to c ++ online
// Ex.14 A C Program to find greatest of 3 numbers (nested-if)
#include<conio.h>
#include<stdio.h>
void main()
{
int x,y,z;
clrscr();
printf("Enter three values\n");
scanf("%d%d%d",&x,&y,&z);
if(x>y)
	{
		if(x>z)
		printf("%d is greater",x);
	}
else if(y>z)
	printf("%d is greater",y);
else
	printf("%d is greater",z);
getch();
}




Cpp

Related
khai báo string c++ Code Example khai báo string c++ Code Example
use textchanged qt cpp Code Example use textchanged qt cpp Code Example
c++ clip values Code Example c++ clip values Code Example
set the jth bit from 1 to 0 Code Example set the jth bit from 1 to 0 Code Example
get future from promise c++ Code Example get future from promise c++ Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9