S
sonu
Hi i want to find the greater number without any operator.
so please any one help me and send some code
Thanks
Sonu
so please any one help me and send some code
Thanks
Sonu
sonu said:Hi i want to find the greater number without any operator.
Why?
so please any one help me and send some code
Any? Please elaborate.sonu said:Hi i want to find the greater number without any operator.
so please any one help me and send some code
sonu said:Hi i want to find the greater number without any operator.
so please any one help me and send some code
sonu said:Hi i want to find the greater number without any operator.
sonu said:Hi i want to find the greater number without any operator.
so please any one help me and send some code
Hi i want to find the greater number without any operator.
Hi i want to find the greater number without any operator.
Mark said:Hi i want to find the greater number without any operator.
I may have it.
#include <stdio.h>
int main(void)
{
char x[12], y[12];
printf("please enter two numbers, the larger first\n");
Ravi Nakidi said:This is the one solution
#include<stdio.h>
main()
{
printf("Enter two numbers:");
scanf("%d"%d",&a,&b);
if(a/b){
if(b/a)
printf("Both are equal");
else
printf("%d is big",a);
}
else
printf("%d is big",b);
}
I think this is the solution u are expecting.
Please quote context.Ravi said:Hi Sonu,
This is the one solution
#include<stdio.h>
main()
{
printf("Enter two numbers:");
scanf("%d"%d",&a,&b);
if(a/b){
if(b/a)
printf("Both are equal");
Ravi Nakidi said:This is the one solution
#include<stdio.h>
main()
{
printf("Enter two numbers:");
scanf("%d"%d",&a,&b);
if(a/b){
if(b/a)
printf("Both are equal");
else
printf("%d is big",a);
}
else
printf("%d is big",b);
}
I think this is the solution u are expecting.
Keith said:Ravi, I'm going to offer you some advice. [snip helpful advice]
Welcome to comp.lang.c. I hope you find it useful and enjoyable.
Mark said:Hi i want to find the greater number without any operator.
I may have it.
#include <stdio.h>
int main(void)
{
char x[12], y[12];
printf("please enter two numbers, the larger first\n");
This uses the () operator to call printf (the parens
are described as a "postfix operator" in 6.5.2).
Hi Sonu,
This is the one solution
#include<stdio.h>
main()
{
printf("Enter two numbers:");
scanf("%d"%d",&a,&b);
if(a/b){
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.