plz agar is k answer kisi ko aate ha wo mjhe reply kar plz urgent this my number -------------
plz agar is k answer kisi ko aate ha wo mjhe reply kar plz urgent this my number -------------
Last edited by *KHAN*JEE*; 6th June 2010 at 01:23 PM. Reason: Cell Number Removed...
bhai jaan is main kya mushkil hy....!!!!
answer btaao yarr is k aap ko to aati hogi c++ magar mhje to nahi aati plz aap is k answer btaye
BHI Agar aap ko c++ ki samaj hy hi nahi to pr q poach rahy ho
solution of 2
#include <iostream.h>
#include <conio.h>
void main()
{
clrscr();
int a,b,c,d,e,f;
cout<<"Enter 1st no=";
cin>>a;
cout<<"enter 2nd no=";
cin>>b;
c= a+b;
d= a*b;
e= a-b;
f= a/b;
cout<<"Sum="<<c<<endl;
cout<<"product="<<d<<endl;
cout<<"difference="<<e<<endl;
cout<<"quotient="<<f;
getch();
}
solution of 4
FINDING GREATER NO
#include <iostream.h>
#include <conio.h>
void main()
{
clrscr();
int a,b,c;
cout<<"enter 1st no=";
cin>>a;
cout<<"enter 2nd no=";
cin>>b;
cout<<"enter 3rd no=";
cin>>c;
if(a>b)
if(a>c)
cout<<"1st no is greater";
else
cout<<"3rd no is greater"
else
if(b>c)
cout<<"2nd no is greater";
else
cout<<"3rd no is greater";
getch()
}
solution of 4
FINDING SMALLER NO
#include <iostream.h>
#include <conio.h>
void main()
{
clrscr();
int a,b,c;
cout<<"enter 1st no=";
cin>>a;
cout<<"enter 2nd no=";
cin>>b;
cout<<"enter 3rd no=";
cin>>c;
if(a<b)
if(a<c)
cout<<"1st no is smaller";
else
cout<<"3rd no is smaller";
else
if(b<c)
cout<<"2nd no is smaller";
else
cout<<"3rd no is smaller";
getch();
}
solution of 6
#include <iostream.h>
#include <conio.h>
void main()
{
clrscr();
int a,b,c;
cout<<"enter any no="
cin>>a;
b=a*a;
c=a*a*a;
cout<<"square="<<b<<endl;
cout<<"cube="<<c<<;
getch();
}
;-)
[QUOTE=Ganxtr;2119403];-)[/QUOTE
wt iz dis?
Thanks man
In Question 5 Part a
Remove The semicolon(
because ; can't be use with if statement
Bookmarks