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

About this Thread

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

Trending Topics

Online now

Members online
1,326
Guests online
9,167
Total visitors
10,493

Forum statistics

Threads
2,336,378
Posts
29,290,527
Members
1,130,648
Latest member
marine5613
Back
Top