Jump to content
mhby87

Tetapkan 2 Titik Perpuluhan

Recommended Posts

Mintak Bantuan, Saya Baru Belajar C++. Minta Tolong Untuk Tetapkan Titik Perpuluhan Pada Aturcara Saya

#include<iostream.h>

void main()

{

float x=4, y=3.33333333333333;

cout<<x<<endl; //tolong paparkan jawapan seperti 4.00

cout<<y<<endl; //tolong paparkan jawapan seperti 3.33

}

Jika Sesiapa Dapat, Sila Emailkan kepada saya

[email protected]

TQ

Edited by mhby87

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...