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

About this Thread

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

Trending Topics

Online now

Members online
629
Guests online
1,059
Total visitors
1,688

Forum statistics

Threads
2,287,419
Posts
29,044,583
Members
1,216,522
Latest member
mrshanks
Back
Top