🔒 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
  • 672
    Views
  • 3
    Participants
Last reply from:
zhero25

Trending Topics

Online now

Members online
1,200
Guests online
3,287
Total visitors
4,487

Forum statistics

Threads
2,308,259
Posts
29,184,101
Members
1,191,909
Latest member
jesters
Back
Top