#️⃣ 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.

Similar threads

About this Thread

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

Trending Topics

Online now

Members online
1,087
Guests online
5,161
Total visitors
6,248

Forum statistics

Threads
2,354,437
Posts
29,383,655
Members
1,079,454
Latest member
jialeyne5566
Back
Top