sign up I login
 advanced
refer a friend - earn nickels!!

Ask & Discuss Questions with Community & Experts

Moderation Team
 90 chars left    advanced
Ask iit jee aieee pet cbse icse state board community Community Discussion Question: WAP in c++ 2 input value of W,X,Y,Z and display the value of 'P' where 'P'=W+X/Y-Z
Forum Index -> Computer Science like the article? email it to a friend.  
Author Message
shubham21 (0)

New kid on the Block

Olaaa!! Perrrfect answer. 0  [0 rates]

shubham21's Avatar

total posts: 4    
offline Offline
WAP in c++ 2 input value of W,X,Y,Z and display the value of 'P' where 'P'=W+X/Y-Z
    
vibhav1991 (144)

Hot goIITian

Olaaa!! Perrrfect answer. 24  [36 rates]

vibhav1991's Avatar

total posts: 159    
offline Offline

#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 Olaaa!! Perrrfect answer.   in 0 votes )   [?]
 
You have to be logged on to rate
  
nadeemoidu (1184)

Blazing goIITian

Olaaa!! Perrrfect answer. 200  [292 rates]

nadeemoidu's Avatar

total posts: 493    
offline Offline

#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 Olaaa!! Perrrfect answer.   in 0 votes )   [?]
 
You have to be logged on to rate
  
crack (385)

Blazing goIITian

Olaaa!! Perrrfect answer. 65  [95 rates]

crack's Avatar

total posts: 318    
offline Offline

 #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 Olaaa!! Perrrfect answer.   in 0 votes )   [?]
 
You have to be logged on to rate
  
 
Forum Index -> Computer Science
Go to:   

Top Offers for goIITians
Correspondence Courses
Brilliant Tutorials
Narayana Institute
Aakash Institute
Classroom/Crash Courses
Narayana - Kota , Delhi , Others
Brilliant Tutorials - Class , Crash
Aakash Institute - Medical , Engg
Online Test Series
Brilliant Tutorials
Narayana Institute
Aakash Institute
Mahesh Tutorials
AMITY      Sri Chaitanya