🔒 Closed Pa help po C prog

Status
Not open for further replies.

Renzii98

Leecher
Mga idol hingi lang sana ako tulong sa looping. Medyo mahihirapan kasi ako mapalabas yung output. ag ginagamitan ng \t naapketuhan yung kabilang column. d ko po alam kung mali lang ako sa brackets. thanks in advance po.
USER_SCOPED_TEMP_DATA_orca-image--1482932971.webp
 
#include <stdio.h>

int main()
{
int a;
int a1;

for(a=1, a1=10;a<=10,a1>=6; a+=2,a1--)

printf("%d \t \t %d\n",a,a1);
}

Ito palang initial ko idol. pag nag if ako sa a1==6 dun na ako nagkakamali nawawala yung 9 sa unang column.
ganito ba?
 

Attachments

  • 2021-11-25 14_19_30-C__Users_zhero_Desktop_G10 C PROG_ewan.c (WorkSpace) - Sublime Text.webp
    2021-11-25 14_19_30-C__Users_zhero_Desktop_G10 C PROG_ewan.c (WorkSpace) - Sublime Text.webp
    13.9 KB · Views: 18
Status
Not open for further replies.

About this Thread

  • 5
    Replies
  • 661
    Views
  • 3
    Participants
Last reply from:
zhero25

Online now

Members online
1,066
Guests online
820
Total visitors
1,886

Forum statistics

Threads
2,276,991
Posts
28,973,649
Members
1,229,682
Latest member
JhayPureno13
Back
Top