Free C programs with output, C++ (C plus plus), programs c programming language, object oriented programming, c programs codes, c program shortcuts, history of c programming language, c programming compilers
Tuesday, January 17, 2012
Greatest of two Numbers - Conditional Operator
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b;
clrscr();
printf(“enter the 2 numbers”);
scanf(“%d%d”,&a,&b);
(a>b?printf(“a is greater”):printf(“b is greater”));
No comments:
Post a Comment