# Thread: Eik Chota Sa Masla Hai Mere Saath [please solve it]

1. ## Eik Chota Sa Masla Hai Mere Saath [please solve it]

ASSALAAM O ALAIKUM TO ALL OF YOU
suppose hamary pas koi integer number hai to ham ne even odd check karna hai mager tens position per

e.g 56 ho to wo number 5 hoga
yani sirf left waaly number ko check kren ge !!!! is it possible if yes then how?

2. any here???
......FIRE

3. Senior Member
Last Online
31st July 2015 @ 02:07 PM
Join Date
23 Aug 2008
Location
Izlooo
Gender
Male
Posts
3,519
96
Thanked
263
kiya matlab? sawal detail ma btoe...samj nahi ai sahi se...

4. Junior Member
Last Online
19th June 2017 @ 05:14 PM
Join Date
21 Feb 2009
Age
34
Posts
27
3
Credits
674
Thanked
2

# include <conio.h>
#include<iostream.h>
int main()
{
int a,b;
cout<<"Enter The Number in double Figure:" ;
cin>>a;

if (a>=10)
{
b=a/10;
if (b % 2==0)
cout<<b<<" is even";
else
cout<<b<<" is odd";
}
else
cout<<"Number is not in double figure";
getch();
}

5. ## The Following User Says Thank You to zooma For This Useful Post:

Fire (2nd January 2012)

6. ab masla ye hai k first 10 numbers ka factorial display krwana hai zooma G plz help
..............FIRE

7. AAP PANEY SAWAL KI TORI DETAIL DEY ISS TERHA JO CODE AAP KO DIYA GAYA HAI WOH 10 NUMBER SAY UPPER KE EVEN ODDS KO SHOW KARTA HAI OR DOUBLE FIGURE ENTER MANGTA HAI

8. ## The Following User Says Thank You to Derwaish For This Useful Post:

Fire (4th January 2012)

9. # include <conio.h>
#include<iostream.h>
int main()
{
int a,b;
cout<<"Enter The Number:" ;
cin>>a;

if (a>=10)
{
b=a/10;
if (b % 2==0)
cout<<b<<" is even";
else
cout<<b<<" is odd";
}
else
{
if (a % 2==0)
cout<<a<<" is even";
else
cout<<a<<" is odd";
}
getch();
}

10. ## The Following User Says Thank You to rajsiyal For This Useful Post:

Fire (4th January 2012)

11. ## try this.

# include <conio.h>
#include<iostream.h>
int main()
{
int a,b;
cout<<"Enter The Number:" ;
cin>>a;

if (a>=10)
{
b=a/10;
if (b % 2==0)
cout<<b<<" is even";
else
cout<<b<<" is odd";
}
else
{
if (a % 2==0)
cout<<a<<" is even";
else
cout<<a<<" is odd";
}
getch();
}

12. ## The Following User Says Thank You to rajsiyal For This Useful Post:

Fire (4th January 2012)

13. تھریڈ کو ایجوکیشنل ہیلپ زون منتقل کیا گیا

14. ## The Following User Says Thank You to Shehzad Iqbal For This Useful Post:

Fire (4th January 2012)

15. Bhai jan mera masla hall ho gya he now you can close this thread if you want
.....................fire

16. Fire said:
Bhai jan mera masla hall ho gya he now you can close this thread if you want
.....................fire
Problem Solved.

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•