🔒 Closed C# Error while in putting "else"

Status
Not open for further replies.
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

  • Screenshot_20201021_104057.webp
    Screenshot_20201021_104057.webp
    11.1 KB · Views: 15
[XX='inusena, c: 411459, m: 588361'][/XX]
1. Start
2. Let num=0, ctr =0, sum = 0;
3. INput num
4. sum = sum + num;
5. ctr =ctr + 1
6. If counter == 5
OUTput sum
else
goto step 3
7. End

Ayan po example ng teacher ko.
 
Kuys ginagawan kona ng Flowchart yan kaya lang hindi kona alam kasunod. Pa guide naman. At kung tama din ba yung una. Salamat po
 

Attachments

  • Screenshot_20201021_162214_com.android.gallery3d.jpg
    Screenshot_20201021_162214_com.android.gallery3d.jpg
    26.8 KB · Views: 0
Status
Not open for further replies.

About this Thread

  • 56
    Replies
  • 2K
    Views
  • 5
    Participants
Last reply from:
G I N E B R A

Trending Topics

Online now

Members online
391
Guests online
1,177
Total visitors
1,568

Forum statistics

Threads
2,288,490
Posts
29,051,963
Members
1,215,116
Latest member
gundam325
Back
Top