User Profile

Collapse

Profile Sidebar

Collapse
dttin27
dttin27
Last Activity: Dec 6 '11, 05:12 PM
Joined: Nov 21 '11
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • dttin27
    started a topic question about labeling entry data
    in C

    question about labeling entry data

    I have to create a 2 dimensional array (5X4 (int type)) which can hold 4 exam scores for each of 5 students.Here is my code:

    #include<stdio. h>

    int main(void)
    {
    int numstu = 5;
    double studentscore[numstu][5];
    double score1, score2, score3, score4;
    int i, z;
    double avgstu;
    double avgexam = 0;
    double sum...
    See more | Go to post

  • dttin27
    started a topic Syntax error in hailstones sequence program
    in C

    Syntax error in hailstones sequence program

    Hi, I'm trying to write a program that can generate some hailstones, here is my code so far:


    Code:
    #include<stdio.h>
    #include<stdlib.h>
    
    void    hailstones(int n);
    int main(void)
    {
            int a;
            printf("Enter the number: ");
            scanf("&d", &a);
            return 0;
    }
    void hailstones(int n)
    {
            int i
    ...
    See more | Go to post
    Last edited by Meetee; Nov 21 '11, 06:12 AM. Reason: code tags added
No activity results to display
Show More
Working...