Search:

Type: Posts; User: Aliano

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    15,788

    void main { int number; char quit do {...

    void main
    {
    int number;
    char quit
    do
    {
    printf("Enter number:\n");
    if(scant("%d",&number) !=1 && scanf("%c", &quit))
    {
    printf("Invalid\n");
  2. Replies
    6
    Views
    15,788

    Give Error Message If User Inputs Wrong

    #include<stdio.h>
    void main
    {
    int i;
    int marks[10];


    for( i=0; i<10; i++)
    {
    printf("\n %d",i+1);
  3. Replies
    12
    Views
    1,566

    #include #include ...

    #include <stdio.h>
    #include <stdlib.h>


    struct node
    int no;
    struct node *next;
    };
  4. Replies
    4
    Views
    1,254

    Function Question

    #include<stdio.h>

    int calcAbvAvg(int marks[10], int avg)
    {
    int students = 0;
    int i;

    for(i=0;i<10;i++)
    {
    if(marks[i] > avg)
  5. Replies
    12
    Views
    1,566

    i didnt get what you mean by " Now, instead of...

    i didnt get what you mean by "
    Now, instead of printing something every time, set a flag and print it once at the end."


    i hate linked list -_-

    http://i.imgur.com/dtodncW.png
  6. Replies
    5
    Views
    1,619

    true true is true? o.O it works while(ch !='q'...

    true true is true? o.O
    it works while(ch !='q' && ch != 'Q');
  7. Replies
    5
    Views
    1,619

    void create(struct node **head) { int c;...

    void create(struct node **head)
    {
    int c;
    char ch;
    struct node *temp, *rear;

    do
    {
    printf("Enter Student Score:");
    scanf("%d", &c);
  8. Replies
    5
    Views
    1,619

    Input 'Q' quit 'C' Continue

    #include <stdio.h>
    #include <stdlib.h>

    //Linked List data structure declaration
    struct node {
    int num;
    struct node *next;
    };
  9. Replies
    12
    Views
    1,566

    #include #include ...

    #include <stdio.h>#include <stdlib.h>


    //Linked List data structure declaration
    struct node
    {
    int num;
    struct node *next;
    };
  10. Replies
    12
    Views
    1,566

    In my first post coding linked list print as the...

    In my first post coding linked list print as the order it is entered! i want to print like this. 0 to 50 scores as valid and rest as invalid :|

    Linked-List of valid scores 0->30->27->43-> END OF...
  11. Replies
    12
    Views
    1,566

    In the following code, it required for users to...

    In the following code, it required for users to enter scores between 0 -50 which should print valid link list and if values beyond the range are entered, should be flagged as invalid and print...
  12. Replies
    12
    Views
    1,566

    #include #include ...

    #include <stdio.h>#include <stdlib.h>


    //Linked List data structure declaration
    struct node
    {
    int num;
    struct node *next;
    };
  13. Replies
    12
    Views
    1,566

    Linked List Question

    In the following code, it required for users to enter scores between 0 -50 which should print valid link list and if values beyond the range are entered, should be flagged as invalid and print...
  14. Replies
    6
    Views
    920

    i want to write a function for this program that...

    i want to write a function for this program that will count no of students who are above and below average!
    what will be the formula to get it?
  15. Replies
    6
    Views
    920

    thanks that works! :biggrin: how do i print the...

    thanks that works! :biggrin:
    how do i print the error message "Character is Invalid" if a user enter something other then numbers?
    Which method i should use?
  16. Replies
    6
    Views
    920

    HELP with Array Question

    //Program that reads 10 students marks and display the average, the maximum and the minimum marks.

    #include <Stdio.h>

    main()
    {

    // Local Declarations
    int marks[10];
    int i; ...
Results 1 to 16 of 16