#️⃣ C# Deleted

Status
Not open for further replies.
Pasama na rin po

Write a program that will calculate the number of cans of red and blue paint required to paint two eccentric circles. The inner circle is painted red while the outer circle is painted blue. An area of 5 can consume 1 can of paint.

Write a program that will ask for a number in double type. Your program will separately display the whole part and fractional part of number.

Illustration:
Enter a number: 12.7564
The whole part of the number: 12
The fractional part of the number: 0.7564
 
Wala talagang tutulong sa ganitong thread e , Pinapagawa nyu kase dito buong assignment nyu .
Dapat papatulong lang kayu pag may error yung project nyu . hindi yung magpapasubo kayu ng buong code
 
Pasama na rin po

Write a program that will calculate the number of cans of red and blue paint required to paint two eccentric circles. The inner circle is painted red while the outer circle is painted blue. An area of 5 can consume 1 can of paint.

Write a program that will ask for a number in double type. Your program will separately display the whole part and fractional part of number.

Illustration:
Enter a number: 12.7564
The whole part of the number: 12
The fractional part of the number: 0.7564

Baka meron pang iba?
 
Pasama na rin po

Write a program that will calculate the number of cans of red and blue paint required to paint two eccentric circles. The inner circle is painted red while the outer circle is painted blue. An area of 5 can consume 1 can of paint.

Write a program that will ask for a number in double type. Your program will separately display the whole part and fractional part of number.

Illustration:
Enter a number: 12.7564
The whole part of the number: 12
The fractional part of the number: 0.7564

eto ts subo ng subo

baka eto yun
Console.WriteLine("Enter a Number: ");
double number = Convert.ToDouble(Console.ReadLine());
int intPart = (int)number;
Console.WriteLine("Double Number is: " + number);
Console.WriteLine("The whole part of the number is: " + intPart);
Console.WriteLine("Decimal part of the double number is: " + (number - intPart));
 
Status
Not open for further replies.

About this Thread

  • 4
    Replies
  • 918
    Views
  • 4
    Participants
Last reply from:
PsiponHandler

Trending Topics

Online now

Members online
1,097
Guests online
1,159
Total visitors
2,256

Forum statistics

Threads
2,273,809
Posts
28,951,896
Members
1,234,967
Latest member
hunterzz007
Back
Top