Turbo C Tutorial - PINOYDEN


Go Back   PINOYDEN > PC Zone > Programming

Welcome to PinoyDen Forums.

You are currently browsing our forum as a guest, please consider registering to get full access to all of our forum features, download free games, get help for your pc and cellphone problems and learn new mobile tricks like how to browse the internet using your cellphone for free. All that and more, so what are you waiting for, JOIN us now!!!! Click here to register...
 Topic: Turbo C Tutorial  (Read 16656 times)
0 Members and 1 Guest are viewing this topic.
Pages: 1 ... 35 36 37 [38] 39 40 41   Go Down
Reply #555
11-18-12 08:12 PM
  • Full Member
  • ***
  • Offline
 
Posts: 3967
Thank You: 112
Reputation: 4
blanket has no influence.barely matters.is working their way up.might someday be someone...is on the verge of being accepted.is a rising star!has a powerful will.is a force to reckon with.has great potential!has an aura about them.is leading the good life!is awe-inspiring!
mga tol pasagot naman nito Write a program that will print a
series of 10 numbers based on any
number input.
Required: output sample input: 10
series: 11,13,16,20,25,31,38,46,55,65.
Reply #556
11-18-12 11:06 PM
  • Jr. Member
  • **
  • Offline
 
Posts: 71
Thank You: 14
Reputation: 0
yerffej19 has no influence.barely matters.is working their way up.might someday be someone...is on the verge of being accepted.is a rising star!has a powerful will.is a force to reckon with.has great potential!has an aura about them.is leading the good life!is awe-inspiring!
Quote:
Originally Posted by : blanket on 11-18-12 08:12 PM
mga tol pasagot naman nito Write a program that will print a
series of 10 numbers based on any
number input.
Required: output sample input: 10
series: 11,13,16,20,25,31,38,46,55,65.

Actually madali lang to.
Hmmm dapat aralin mo to ha.


Code: [Select]

#include <stdio.h>
#include <conio.h>

int main(void){
   
    int num,seriesNum;
   
    printf("Enter a number: ");
    scanf("%i",&num);
    seriesNum = num;
   
    printf("\n\nNumber Series: ");
    for(int ctr=0; ctr<num; ctr++)
    {
        printf("%i ", seriesNum + (ctr+1));
        seriesNum += (ctr+1);
    }
   
    getch();
}


Reply #557
11-19-12 08:08 AM
  • Full Member
  • ***
  • Offline
 
Posts: 3967
Thank You: 112
Reputation: 4
blanket has no influence.barely matters.is working their way up.might someday be someone...is on the verge of being accepted.is a rising star!has a powerful will.is a force to reckon with.has great potential!has an aura about them.is leading the good life!is awe-inspiring!
dre ! nga pala anu ba pinagkaiba ng c + +   at turbo c?
Reply #558
11-19-12 09:05 AM
  • Jr. Member
  • **
  • Offline
 
Posts: 71
Thank You: 14
Reputation: 0
yerffej19 has no influence.barely matters.is working their way up.might someday be someone...is on the verge of being accepted.is a rising star!has a powerful will.is a force to reckon with.has great potential!has an aura about them.is leading the good life!is awe-inspiring!
Mejo malaki.
Especially sa syntax. Hindi ako maalam maxado ng C++ pero sabi nila Object Oriented daw ang C++ meaning may classes etc.
Reply #559
11-20-12 01:08 AM
  • Banned
  • Semi-Newbie
  • *
  • Male Offline
 
Posts: 47
Thank You: 54
Reputation: 0
jahrakal has no influence.barely matters.is working their way up.might someday be someone...is on the verge of being accepted.is a rising star!has a powerful will.is a force to reckon with.has great potential!has an aura about them.is leading the good life!is awe-inspiring!
Wow daming programmer ah
Reply #560
11-21-12 04:30 AM
  • Full Member
  • ***
  • Offline
 
Posts: 3967
Thank You: 112
Reputation: 4
blanket has no influence.barely matters.is working their way up.might someday be someone...is on the verge of being accepted.is a rising star!has a powerful will.is a force to reckon with.has great potential!has an aura about them.is leading the good life!is awe-inspiring!
Dev c++ pala yung pinapagawa samin
Reply #561
11-21-12 10:47 AM
  • Jr. Member
  • **
  • Offline
 
Posts: 121
Thank You: 22
Reputation: 0
aleria has no influence.barely matters.is working their way up.might someday be someone...is on the verge of being accepted.is a rising star!has a powerful will.is a force to reckon with.has great potential!has an aura about them.is leading the good life!is awe-inspiring!
mga sir paano po gawin to
fill ng asteris"*" ang outputbox parotate..using 5 for statement lang daw..nasa array na kasi kame e..salamat..
Reply #562
11-21-12 09:41 PM
  • Jr. Member
  • **
  • Offline
 
Posts: 71
Thank You: 14
Reputation: 0
yerffej19 has no influence.barely matters.is working their way up.might someday be someone...is on the verge of being accepted.is a rising star!has a powerful will.is a force to reckon with.has great potential!has an aura about them.is leading the good life!is awe-inspiring!
Quote:
Originally Posted by : aleria on 11-21-12 10:47 AM
mga sir paano po gawin to
fill ng asteris"*" ang outputbox parotate..using 5 for statement lang daw..nasa array na kasi kame e..salamat..

Ano daw? Bigay ka ng sample output. Kasi malabo xa.
Reply #563
11-22-12 10:31 AM
  • Jr. Member
  • **
  • Offline
 
Posts: 121
Thank You: 22
Reputation: 0
aleria has no influence.barely matters.is working their way up.might someday be someone...is on the verge of being accepted.is a rising star!has a powerful will.is a force to reckon with.has great potential!has an aura about them.is leading the good life!is awe-inspiring!
Quote:
Originally Posted by : yerffej19 on 11-21-12 09:41 PM
Ano daw? Bigay ka ng sample output. Kasi malabo xa.
*************************************************
  **********************************************  *
  *  ******************************************  *  *
  *  *                                                                      *  *  *
  *  *                                                                      *  *  *
  *  *                                                                      *  *  *
  *  *                                                                      *  *  *
  *  ********************************************  *
  ************************************************
parang ganyan po sir..hanggang mapuno sya ng mga asteris ...sori kung malabo sir..
salamat                                                                         
Reply #564
11-22-12 10:38 AM
  • Jr. Member
  • **
  • Offline
 
Posts: 71
Thank You: 14
Reputation: 0
yerffej19 has no influence.barely matters.is working their way up.might someday be someone...is on the verge of being accepted.is a rising star!has a powerful will.is a force to reckon with.has great potential!has an aura about them.is leading the good life!is awe-inspiring!
malabo pa rin explain.
Anung mangyayare ba or anu ang final output
Reply #565
11-22-12 10:39 AM
  • Full Member
  • ***
  • Online
 
Posts: 2369
Thank You: 168
Reputation: 0
ccojuangco has no influence.barely matters.is working their way up.might someday be someone...is on the verge of being accepted.is a rising star!has a powerful will.is a force to reckon with.has great potential!has an aura about them.is leading the good life!is awe-inspiring!
pwedi po ba dito tumambay gusto ko lang kasi po magpatulong po sa DATA BASE MANAGEMENT kompo na subject?? :hehe:
Reply #566
11-29-12 03:31 PM
  • Full Member
  • ***
  • Offline
 
Posts: 3967
Thank You: 112
Reputation: 4
blanket has no influence.barely matters.is working their way up.might someday be someone...is on the verge of being accepted.is a rising star!has a powerful will.is a force to reckon with.has great potential!has an aura about them.is leading the good life!is awe-inspiring!
walang thread dito for c++ ?
Reply #567
12-03-12 08:05 AM
  • Full Member
  • ***
  • Offline
 
Posts: 3967
Thank You: 112
Reputation: 4
blanket has no influence.barely matters.is working their way up.might someday be someone...is on the verge of being accepted.is a rising star!has a powerful will.is a force to reckon with.has great potential!has an aura about them.is leading the good life!is awe-inspiring!
 guys pano yung program na magdedetermine kung odd or even ang ininput nyong number?
Reply #568
12-03-12 04:57 PM
  • Jr. Member
  • **
  • Female Offline
 
Posts: 199
Thank You: 7
Reputation: 1
culin has no influence.barely matters.is working their way up.might someday be someone...is on the verge of being accepted.is a rising star!has a powerful will.is a force to reckon with.has great potential!has an aura about them.is leading the good life!is awe-inspiring!
guys patulong naman po ..program about sa ascending order
Reply #569
12-03-12 05:02 PM
  • Jr. Member
  • **
  • Offline
 
Posts: 71
Thank You: 14
Reputation: 0
yerffej19 has no influence.barely matters.is working their way up.might someday be someone...is on the verge of being accepted.is a rising star!has a powerful will.is a force to reckon with.has great potential!has an aura about them.is leading the good life!is awe-inspiring!
Quote:
Originally Posted by : blanket on 12-03-12 08:05 AM
guys pano yung program na magdedetermine kung odd or even ang ininput nyong number?

Madali lang to. Code ko na lang sa C. Convert nyu sa turbo C. Hahaha

Code: [Select]

#include <stdio.h>
#include <conio.h>
 
int main()
{
    int num;
   
    printf("Enter a number: ");
    scanf("%i",&num);
   
    if(num%2 == 0)
        printf("The number %i is even!",num);
    else
        printf("The number %i is odd!",num);
   
    getch();
    return 0;
}



Quote:
Originally Posted by : culin on 12-03-12 04:57 PM
guys patulong naman po ..program about sa ascending order

Code: [Select]

#include <stdio.h>
#include <conio.h>
 
int main()
{
    int num[5],numAsc[5], ctr, ctr2, temp, pointer=1;
   
    for(ctr = 0; ctr<5; ctr++){
        printf("Enter number %i: ",(ctr+1));
        scanf("%i",&num[ctr]);
        numAsc[ctr] = num[ctr];
    }
   
    for(ctr = 0; ctr<5; ctr++){
        for(ctr2 = pointer; ctr2<5; ctr2++){
            if(numAsc[ctr] > numAsc[ctr2]){
                temp = numAsc[ctr];
                numAsc[ctr] = numAsc[ctr2];
                numAsc[ctr2] = temp;
            }
        }
        pointer++;
    }
   
    printf("\nInput Numbers: ");
    for(ctr = 0; ctr<5; ctr++){
        printf("%i ",num[ctr]);
    }
    printf("\nSorted Numbers: ");
    for(ctr = 0; ctr<5; ctr++){
        printf("%i ",numAsc[ctr]);
    }
   
   
    getch();
    return 0;
}



Yan kasama na diyan ang mga negative numbers.
5 inputs lang yan.
Pages: 1 ... 35 36 37 [38] 39 40 41   Go Up
 


Related Topics
Subject Started by Replies Views Last post
[Q]Turbo sim?
Mobile Discussions
gidz3 9 856 Last post 11-09-09 12:32 PM
by khentotz
Turbo c ms dos?
Programming
Markger14 3 931 Last post 12-10-09 09:07 PM
by rajahboy
turbo c
PC Help & Support
cloudzz 3 288 Last post 10-21-10 06:46 AM
by cloudzz
[HELP] turbo c
Programming
emm386 3 891 Last post 03-17-11 07:10 PM
by emm386
[help]turbo c
Programming
darkshow 25 654 Last post 06-30-11 01:45 PM
by darkshow

All dates are GMT+8:00. The date now is 05-23-13 08:55 AM
WWW.PINOYDEN.COM.PH does not store any files on it's server, we are just indexing other sites contents!
WWW.PINOYDEN.COM.PH [Ang Tambayan ng pinoy!] © copyright 2008-2009 All Rights Reserved.
Contents published on www.PinoyDen.com.ph requires permission for reprint.

Page created in 0.178 seconds with 22 queries.