Professional Documents
Culture Documents
A=pi*R *R
C=2*pi*R
3-Write a program to read three marks for a student and find the
average mark
F = C*9/5+32
5- Write a program to read x,y,z and w and find the value of a and b
5 x y 4.5( x 2.3 y ) 2
a and b
z 2.7 w zw
#include<iostream>
main ( )
{ int x=1,y=2,z=3;
z += ++x+10/2*5+y--;
9-Write a program that prompts the user for the Cartesian coordinates
of two points (x1 , y1) and (x2 , y2) and display the distance between
them computed using the following formula: