- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 5
- Posts with Downvotes
- 5
- Downvoting Members
- 3
#include<iostream.h> #include<conio.h> #include<stdio.h> #include<math.h> main() { system("cls"); int h,w,m; cout<<"Press1,if you are male"<<endl; cout<<"press2,if you are female"<<endl; cin>>m; if(m==1) { cout<<"you are male"<<endl; } if(m==2) { cout<<"you are female"<<endl; } cout<<"Enter your height="; cin>>h; cout<<"Enter your weight="; cin>>w; if(m==1) { if(h<60) { cout<<"you are unfit"; } if(h>=60&&h<65) { if(w<45) cout<<"you … |
|
#include<iostream> using namespace std; int main() { for(int i=0;i<13;i++) { cout<<"*"; if(i==0 || i==12 ||i==9) { for(int j=0;j<10;j++) { if(i==9 && j==0) { cout<<" "; } else cout<<"*"; } } else if(i==10) { cout<<" "; cout<<"*"; for(int j=0;j<7;j++) { cout<<" "; } cout<<"*"; } else if((i==1 || i==2 || i==11)) … |
|
Re:
Please help me!I want the code for doing following task in perl. Task is that "Read the paragraph from a file and print it in another file in ascending(total number of words in a sentence) order." My sample task: If the input "Hi! my name is Sarma. Can you help?" … |
|
> *Inline Code Example Here*hi i want to print the diamond as shown bellow,which is generic i mean depend on the user input.the following output is for "5", Heading Here 1 232 34543 4567654 567898765 4567654 34543 232 1 |
|
Re:
basically i have created a selection box which display the files i have got in a certain folder which are xml files, my problem is that i am unsure how to save the content of the file selected as a live variable which changes on different selected which the variable … |
|
Re:
Hi, i am trying to make a BMI calulator and here is my code: [CODE]#include<iostream> #include<sstream> #include<fstream.h> using namespace std; int main (char argc) { double ff1; double ii1; double ww1; for(;;) { system("cls"); cout << "Enter feet." << endl; string f1; cin >> f1; stringstream(f1) >> ff1; if(ff1 >! … |