What's new

C# Deleted

Status
Not open for further replies.

-useR_name-

Forum Veteran
Elite
Joined
Sep 29, 2016
Posts
1,593
Solutions
6
Reaction
1,480
Points
646
Deleted
 
Last edited:
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.
Back
Top