What's new
  • Welcome to PHCorner forums. Take a moment to sign up and gain unlimited access and extra privileges that guests are not entitled to, such as: All that and more! Registration is quick, simple and absolutely free. Join our community today!

Help C# Error while in putting "else"

inusena

Elite
int num1=0, num2=0, count=0, product=0;
input num1;
input num2;
while (count < num2){
product = product + num1;
count++;
}
display product;


convert mo na lang po sa algorithm at flow chart haha
 
Comment
int num1=0, num2=0, count=0, product=0;
input num1;
input num2;
while (count < num2){
product = product + num1;
count++;
}
display product;


convert mo na lang po sa algorithm at flow chart haha
Pa convert kuys. Aralin ko nlng. 1st year lang po kase ako e. Tas nung K12 humms pa kinuha ko. Kya wala po talaga ako background. Pa help po.
 
G
G I N E B R A
Ayan po. Salamat po talaga.
 
Step 1 - Start
Step 2 - int A = 0, B = 0, C= 0, D = 0
Step 3 - Input A
Step 4 - Input B
Step 5 - if D < B
Step 5.1 - C = C + A
Step 5.2 - D = D + 1
Step 5.3 - Go to Step 5
Step 6 - Output C
Step 7 - End
Salamat po. Pero kuys. Wala pong D
 

Attachments

16 Comments View more comments…
G
G I N E B R A
paps ginawa kona kaya lang napatigil ako hindi kona alam next.
 

Attachments

no prob po, picture mo ulit pacheck, wala ba internet yung computer para malinaw screenshot
Wala paps. E CP kolang talaga at Tu50 lang ako. Pag sa loptop mabilis kainin ang data. Sayang din pang Online class kolang nakalaan to.. Salamat paps sapag guide.
 
12 Comments View more comments…
G
G I N E B R A


Directions:
1. Create Struct BoardMarker with the ff: members (inkColor and inkContent) with inital values (Black and 20). Declare the ff: methods
A. displayInfo (Show the inkColor and inkContent)
B. changeColor ( Ask the user to input new color. Note: You cannot change the color if the ink is not empty)
C. Refill( Set the inkContent to 20ml)
D. Write(Deduct 10ml every time you execute this method) Note: You cannot execute this method if the inkContent is empty…Prompt the user to refill.
In the main Method, create a Struct Variable bm of the Struct BoardMarker. Show the Main MENU

Sample Output:

==MENU==
1. Display Info
2. Change Color
3. Refill
4. Write
Enter you choice:

Kuys. Pano kaya to? C# po
 

Online statistics

Members online
1,488
Guests online
2,091
Total visitors
3,579

Forum statistics

Threads
844,136
Messages
16,691,109
Members
1,466,636
Top