Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~515 People Reached
Favorite Forums
Favorite Tags
c++ x 8
Member Avatar for zeroground

i want to enter x1,x2 and y1,y2 and it displays the slope of the line...but there are some errors ,can anyone figure it out ? [code]#include<stdio.h> #include<conio.h> /* 2 point form*/ float findslope(float , float,float , float); float m,n; void main() { float a1,b1,a2,b2,; double result cout << "\n Enter …

Member Avatar for toko
0
96
Member Avatar for zeroground

[code]#include<stdio> #include<iostream> #include<conio> /* 2 point form*/ float x1,x2,y1,y2; cout << "\n Enter values in order x1,x2,y1,y2: "; cin>>x1>>x2>>y1>>y2; float slope; slope=(y2-y1)/(x2-x1); float c=y1-slope*x1; cout<<"\nThe equation of the line is : y="<<slope<<" x + "<<c<<endl; [/code]

Member Avatar for invisal
0
175
Member Avatar for zeroground

this code consider 0,1 as prime numbers and when i remove "!" sign from 0 and 1 it says an error [code]#include <iostream> #include <conio.h> using namespace std; int main(){ int x, y; while (true) { cout << "Please Enter a positive number\n"; cin >> x; if(0 != x || …

Member Avatar for Narue
0
65
Member Avatar for zeroground

i want someone to describe this code to me...what " #include<iomanip.h>" and "#include<stdlib.h>" do ? and how to change the color of the background ? thanks :) [code]#include<iostream.h> #include<conio.h> #include<iomanip.h> #include<stdlib.h> int main() { int number; int response=1; do { system("color a5"); cout<<"Please enter any integer and I will tell …

Member Avatar for Jishnu
0
179