Results 1 to 10 of 10

Thread: salam, c language program help..

  1. #1
    atif_atif's Avatar
    atif_atif is offline Senior Member+
    Last Online
    17th July 2016 @ 06:04 PM
    Join Date
    01 Feb 2010
    Location
    karachi
    Age
    38
    Posts
    80
    Threads
    14
    Credits
    974
    Thanked: 1

    Default salam, c language program help..


    Mujhe c language me programing ka code chahiye koi help kr de.. mujhe 1 aesa program banana hai jis me input user de or answer aa jaye... jese ke Ohm's law prove krte hn ... tO aesa hO ke user I Or R ki value put kare to V ki value khud aa jaye...plzzz help me i need this program's code.. waiting...

  2. #2
    Understander is offline Senior Member+
    Last Online
    5th January 2021 @ 02:58 PM
    Join Date
    12 Oct 2011
    Gender
    Male
    Posts
    98
    Threads
    8
    Credits
    975
    Thanked: 1

    Default

    // ohm's law
    #include< iostream.h>
    #include< conio.h>
    void main ()
    {
    int I,R;
    double V;
    clrscr();
    cout<<"enter the value of Current:";
    cout<<endl;
    cin>>I;
    cout<<"enter the value of resistance:"<<endl;
    cin>>R;
    V=I*R;
    cout<<"the value of voltage is:"<<V<<endl;
    getch();
    }

  3. #3
    pk_khan is offline Senior Member+
    Last Online
    14th October 2022 @ 02:51 PM
    Join Date
    19 Jun 2010
    Location
    Peshawar
    Age
    31
    Gender
    Male
    Posts
    516
    Threads
    13
    Credits
    4
    Thanked
    25

    Default

    Quote Understander said: View Post
    // ohm's law
    #include< iostream.h>
    #include< conio.h>
    void main ()
    {
    int I,R;
    double V;
    clrscr();
    cout<<"enter the value of Current:";
    cout<<endl;
    cin>>I;
    cout<<"enter the value of resistance:"<<endl;
    cin>>R;
    V=I*R;
    cout<<"the value of voltage is:"<<V<<endl;
    getch();
    }
    Zabardast aapnay to problem hal kr di ,wran is pr to may soch raha tha!

  4. #4
    atif_atif's Avatar
    atif_atif is offline Senior Member+
    Last Online
    17th July 2016 @ 06:04 PM
    Join Date
    01 Feb 2010
    Location
    karachi
    Age
    38
    Posts
    80
    Threads
    14
    Credits
    974
    Thanked: 1

    Default not on C++ , on C

    Quote Understander said: View Post
    // ohm's law
    #include< iostream.h>
    #include< conio.h>
    void main ()
    {
    int I,R;
    double V;
    clrscr();
    cout<<"enter the value of Current:";
    cout<<endl;
    cin>>I;
    cout<<"enter the value of resistance:"<<endl;
    cin>>R;
    V=I*R;
    cout<<"the value of voltage is:"<<V<<endl;
    getch();
    }
    sir jiii c++ ki programing nahii , just c language ki chaiye. prinf wali command lagti hai na jisme wo

  5. #5
    Rizwanali11 is offline Junior Member
    Last Online
    11th August 2013 @ 08:50 PM
    Join Date
    15 May 2011
    Age
    32
    Gender
    Male
    Posts
    27
    Threads
    1
    Credits
    0
    Thanked: 1

    Default

    #include<stdio.h>
    #include<conio.h>
    void main()
    {
    double i,v,r;
    printf("Enter value of current:");
    scanf("%f",&i);
    printf("Enter value of Resistance:");
    scanf("%f",&r);
    v=i*r;
    printf("Voltage=%f",v);
    getch();
    }

  6. #6
    Rizwanali11 is offline Junior Member
    Last Online
    11th August 2013 @ 08:50 PM
    Join Date
    15 May 2011
    Age
    32
    Gender
    Male
    Posts
    27
    Threads
    1
    Credits
    0
    Thanked: 1

    Default

    //ohm,s law
    //made by Rizwan Ali
    #include<stdio.h>
    #include<conio.h>
    void main()
    {
    double v,i,r;
    printf("Enter value of Current:");
    scanf("%f",&i);
    printf("Enter value of Resistance:");
    scanf("%f",&r);
    v=i*r;
    printf("\nVoltage=%f",v);
    getch();
    }

  7. #7
    Rizwanali11 is offline Junior Member
    Last Online
    11th August 2013 @ 08:50 PM
    Join Date
    15 May 2011
    Age
    32
    Gender
    Male
    Posts
    27
    Threads
    1
    Credits
    0
    Thanked: 1

    Default

    //ohm,s law
    //made by Rizwan Ali
    #include<stdio.h>
    #include<conio.h>
    void main()
    {
    double v,i,r;
    clrscr();
    printf("Enter value of Current:");
    scanf("%f",&i);
    printf("Enter value of Resistance:");
    scanf("%f",&r);
    v=i*r;
    printf("\nVoltage=%f",v);
    getch();
    }

  8. #8
    Rizwanali11 is offline Junior Member
    Last Online
    11th August 2013 @ 08:50 PM
    Join Date
    15 May 2011
    Age
    32
    Gender
    Male
    Posts
    27
    Threads
    1
    Credits
    0
    Thanked: 1

    Default

    /*ohm,s law*/
    /*made by Rizwan Ali*/
    #include<stdio.h>
    #include<conio.h>
    void main()
    {
    double v,i,r;
    clrscr();
    printf("Enter value of Current:");
    scanf("%f",&i);
    printf("Enter value of Resistance:");
    scanf("%f",&r);
    v=i*r;
    printf("\nVoltage=%f",v);
    getch();
    }

  9. #9
    Rizwanali11 is offline Junior Member
    Last Online
    11th August 2013 @ 08:50 PM
    Join Date
    15 May 2011
    Age
    32
    Gender
    Male
    Posts
    27
    Threads
    1
    Credits
    0
    Thanked: 1

    Default

    Main ne program bnaya hai mgr jab yaha paste krta ho nhi hota

  10. #10
    Rizwanali11 is offline Junior Member
    Last Online
    11th August 2013 @ 08:50 PM
    Join Date
    15 May 2011
    Age
    32
    Gender
    Male
    Posts
    27
    Threads
    1
    Credits
    0
    Thanked: 1

    Smile C progran ohm law

    /*ohm,s law*/
    /*made by Rizwan Ali*/
    #include<stdio.h>
    #include<conio.h>
    void main()
    {
    double v,i,r;
    clrscr();
    printf("Enter value of Current:");
    scanf("%f",&i);
    printf("Enter value of Resistance:");
    scanf("%f",&r);
    v=i*r;
    printf("\nVoltage=%f",v);
    getch();
    }

Similar Threads

  1. Need assembly language or C language Books in urdu
    By ts_asif in forum Ask an Expert
    Replies: 5
    Last Post: 20th November 2016, 12:30 AM
  2. windows 7 change into english language from french
    By mshoaib_ahsan in forum Ask an Expert
    Replies: 4
    Last Post: 13th March 2013, 09:26 AM
  3. Replies: 8
    Last Post: 19th May 2009, 05:51 PM
  4. Language problem In Websites
    By ZoOp in forum Ask an Expert
    Replies: 2
    Last Post: 16th April 2009, 11:00 PM
  5. Replies: 1
    Last Post: 1st March 2009, 03:35 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •