Quantcast

Got Homework?

Connect with other students for help. It's a free community.

  • across
    MIT Grad Student
    Online now
  • laura*
    Helped 1,000 students
    Online now
  • Hero
    College Math Guru
    Online now

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

JadeEyes

Computer Programming: Write a program to read two initials (letters), e.g X and Y, and display them in the form Hello X.Y. The initials are to be entered from the keyboard in the same line of input. I'm using Dev C++.

  • one year ago
  • one year ago

  • This Question is Closed
  1. JadeEyes
    Best Response
    You've already chosen the best response.
    Medals 0

    Could you give me the codes ?

    • one year ago
  2. JadeEyes
    Best Response
    You've already chosen the best response.
    Medals 0

    #include<iostream.h> #include<stdio.h> int main () { It's that part that i require. system("pause"); return 0; }

    • one year ago
  3. compute
    Best Response
    You've already chosen the best response.
    Medals 2

    #include<iostream.h> void main() { char x,y; cout<<"Enter two letters"<<endl; cin>>x>>y; cout<<"Hello"<<x<<"."<<y<<"."; }

    • one year ago
  4. JadeEyes
    Best Response
    You've already chosen the best response.
    Medals 0

    Can you please explain the logic behind? I didn't quite understand what you've done in that part. cout<<"Enter two letters"<<endl; cin>>x>>y; cout<<"Hello"<<x<<"."<<y<<".";

    • one year ago
  5. JadeEyes
    Best Response
    You've already chosen the best response.
    Medals 0

    What does each of these line means ? cout<<"Enter two letters"<<endl; cin>>x>>y; cout<<"Hello"<<x<<"."<<y<<"."; I'm still a beginner in computer programming. the only codes i'm familiar with is printf,scanf, for . So for endl, cout and cin i've not yet done that.

    • one year ago
  6. compute
    Best Response
    You've already chosen the best response.
    Medals 2

    in first line we give d msg 2 user 4r enterng any 2 letter. in 2nd line dat letter will be store in x and y respectively, in 3rd line 1st hello is msg den print d value store in letter x den 1 dot den 2nd letter y den again dot. and endl is for taking d input in d nxt line after d 1st line msg...

    • one year ago
  7. JadeEyes
    Best Response
    You've already chosen the best response.
    Medals 0

    ..Okay..!! :) ..!! Is it possible to write it using scanf and printf ?

    • one year ago
  8. JadeEyes
    Best Response
    You've already chosen the best response.
    Medals 0

    I've got it Thank You..!! :)

    • one year ago
  9. compute
    Best Response
    You've already chosen the best response.
    Medals 2

    no... scanf and printf are in stdio library funcion but here in c++ we r using iostream library functn..

    • one year ago
    • Attachments:

See more questions >>>

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.