C programming help...!!!!!

sumedha456

Active member
  • Nov 26, 2007
    687
    44
    28
    In a dream...
    Plz mta kawru hari kiyala denawada c program ekkta name ekk hari email address ekk hari input ekk wdyta dena widiya....!!! telephone directory ekk hadanna mchnla....!!!!
     

    ¤--bACarDi--¤

    Well-known member
  • Jan 9, 2009
    12,130
    288
    83
    124.43.xxx.xxx
    Use scanf to get keyboard inputs....
    First load stdio.h header file to use scanf...
    Then Declare a variable that fits to ur Keyboard input....
    And use scanf to get the keyboard input & save it to variable....:D
     

    blackroses

    Well-known member
  • Jul 28, 2006
    10,580
    43
    48
    Kelaniya
    #include<stdio.h>
    #include<conio.h>

    void main () {
    clrscr() ;
    char test;
    printf("Enter the name :\t");
    scanf("%c", &test);
    getch();
    }
     

    hirushan

    Member
    May 21, 2007
    5,957
    32
    0
    40
    Edinton Furniture->Moratumulla
    #include <stdio.h>

    int main(void)
    {

    float radius;
    char yourName[15];
    int number;

    printf("Enter the radius of circle: ");
    scanf("%f",&radius);
    printf("A circle of radius %f has / area of %f\n",radius,3.14*radius*radius);
    printf("Enter a number from 1 to 1000: ");

    scanf("%d",&number);
    printf("Your number is %d\n",number);

    printf("Enter your name: ");
    scanf("%s",&yourName);
    printf("Hello %s\n",name);

    return 0;

    }