|
|
|
|
|

| Author |
Message |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 30 May 2008 09:07:41 IST
|
|
|
WAP in c++ 2 input value of W,X,Y,Z and display the value of 'P' where 'P'=W+X/Y-Z
|
|
|
|
![[Post New]](/templates/default/images/icon_minipost_new.gif) 30 May 2008 09:14:54 IST
|
|
|
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int w,x,y,z;
float P;
cout<<"Enter the four values:";
cin>>w>>x>>y>>z;
P=(w+x)/(y-z);
cout<<"result is:"<<P;
getch();
}
|
THINK BIG!
<TABLE CELLSPACING="1" CELLPADDING="1" BORDER="0">
<TR><TD>
    
<DIV ALIGN="right">Glitter Graphics</DIV></TD></TR></TABLE>
|
this reply: 0 points
(with 0 
in 0 votes ) [?]
|
|
You have to be logged on to rate
|
|
|
![[Post New]](/templates/default/images/icon_minipost_new.gif) 30 May 2008 09:15:38 IST
|
|
|
#include<iostream.h>
void main()
{
int w,x,y,z,p;
cin>>w>>x>>y>>z;
p= w+x/y-z;
cout<<p;
}
|
this reply: 0 points
(with 0 
in 0 votes ) [?]
|
|
You have to be logged on to rate
|
|
|
![[Post New]](/templates/default/images/icon_minipost_new.gif) 5 Jun 2008 20:14:33 IST
|
|
|
#include<iostream.h>
#include<conio.h>
void main()
{
int w,x,y,z;
double p;
cout<<"enter the values ";
cin>>w>>x>>y>>z;
p= w+x/y-z;
cout<<"the answer is"<<p;
getch();
}
|
<TABLE CELLSPACING="1" CELLPADDING="1" BORDER="0">
<TR><TD>
<DIV ALIGN="right">Glitter Graphics</DIV></TD></TR></TABLE> |
this reply: 0 points
(with 0 
in 0 votes ) [?]
|
|
You have to be logged on to rate
|
|
|
|
|
|
|
|
|
|