Sign Up

Have an account? Sign In Now

Sign In

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

Sorry, you do not have permission to ask a question, You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here
Sign InSign Up

SIKSHAPATH

SIKSHAPATH Logo SIKSHAPATH Logo

SIKSHAPATH Navigation

  • Home
  • Questions
  • Blog
    • Computer Science(CSE)
    • NPTEL
    • Startup
  • Shop
    • Internshala Answers
Search
Ask A Question

Mobile menu

Close
Ask A Question
  • Home
  • Questions
  • Blog
    • Computer Science(CSE)
    • NPTEL
    • Startup
  • Shop
    • Internshala Answers
  • About
    1. Asked: November 19, 2021In: Programming Language

      Write a Program to Calculate Average of Three Numbers in C Language

      JonSnow07
      JonSnow07
      Added an answer on November 19, 2021 at 6:32 pm

      //C Program to Calculate Average of Three Numbers #include <stdio.h> #include <conio.h> int main() { int n1,n2,n3; float avg; printf("\nEnter three numbers : " ); scanf("%d %d %d",&n1,&n2,&n3); avg=(n1+n2+n3)/3; printf("\nAverage of the given three numbers is : %0.2f",avg); rRead more

      //C Program to Calculate Average of Three Numbers
      #include <stdio.h>
      #include <conio.h>
      int main()
      {
      int n1,n2,n3;
      float avg;

      printf(“\nEnter three numbers : ” );
      scanf(“%d %d %d”,&n1,&n2,&n3);

      avg=(n1+n2+n3)/3;

      printf(“\nAverage of the given three numbers is : %0.2f”,avg);
      return 0;
      }

       

      #To get output download Attachment

      See less
      Attachment

        • 1
      • Share
        Share
        • Share on WhatsApp
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
    2. Asked: November 19, 2021In: Programming Language

      C Program to print Last Digit of a Given Number

      JonSnow07
      JonSnow07
      Added an answer on November 19, 2021 at 6:23 pm

      //C program to find last digit of a given number#include <stdio.h>int main(){int number, lastdigit;printf("\n Please Enter Any Integer Number : ");scanf("%d", & number);lastdigit = number % 10;printf(" \n The Last Digit of the Given Number %d is = %d", number, lastdigit);return 0;}  Read more

      //C program to find last digit of a given number

      #include <stdio.h>

      int main()
      {
      int number, lastdigit;

      printf(“\n Please Enter Any Integer Number : “);
      scanf(“%d”, & number);

      lastdigit = number % 10;

      printf(” \n The Last Digit of the Given Number %d is = %d”, number, lastdigit);

      return 0;
      }

       

      #To get output download Attachment

      See less
      Attachment

        • 0
      • Share
        Share
        • Share on WhatsApp
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
    3. Asked: November 19, 2021In: Programming Language

      Length and breadth of a rectangle are 5 and 7 respectively. Write a program to calculate the area and perimeter …

      JonSnow07
      JonSnow07
      Added an answer on November 19, 2021 at 6:09 pm

      #include<bits/stdc++.h> using namespace std; int area_Rectangle(int length, int breadth) { int area = length * breadth; return area; } int perimeter_Rectangle(int length, int breadth) { int perimeter = 2*(length + breadth); return perimeter; } int main() { int length = 5; int breadth = 7; coutRead more

      #include<bits/stdc++.h>
      using namespace std;

      int area_Rectangle(int length, int breadth)
      {
      int area = length * breadth;
      return area;
      }

      int perimeter_Rectangle(int length, int breadth)
      {
      int perimeter = 2*(length + breadth);
      return perimeter;
      }

      int main()
      {
      int length = 5;
      int breadth = 7;
      cout << “Area of the Rectangle = ” << area_Rectangle(length, breadth) << endl;
      cout << “Perimeter of the Rectangle = ” << perimeter_Rectangle(length, breadth);
      return 0;
      }

       

       

      #To get Output download Attachment.

      See less
      Attachment

        • 1
      • Share
        Share
        • Share on WhatsApp
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
    4. Asked: November 19, 2021In: Programming Language

      Write a program to print the power of 7 raised to 5.

      JonSnow07
      JonSnow07
      Added an answer on November 19, 2021 at 5:58 pm

      // Java program to find the power of a number class GFG { // Function to calculate N raised to the power P static int power(int N, int P) { if (P == 0) return 1; else return N * power(N, P - 1); } // Driver code public static void main(String[] args) { int N = 7; int P = 5; System.out.println(power(Read more

      // Java program to find the power of a number

      class GFG {

      // Function to calculate N raised to the power P
      static int power(int N, int P)
      {
      if (P == 0)
      return 1;
      else
      return N * power(N, P – 1);
      }

      // Driver code
      public static void main(String[] args)
      {
      int N = 7;
      int P = 5;

      System.out.println(power(N, P));
      }
      }

       

       

       

      OUTPUT is in attachment.

      See less
      Attachment

        • 0
      • Share
        Share
        • Share on WhatsApp
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
    5. Asked: November 5, 2021In: Data Structure

      Write a C/C++ program to sort a list of elements using the merge sort algorithm

      JonSnow07
      JonSnow07
      Added an answer on November 5, 2021 at 8:35 pm

      Download the attachment

      Download the attachment

      See less
      Attachment

        • 0
      • Share
        Share
        • Share on WhatsApp
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
    6. Asked: October 17, 2021In: Data Structure

      Convert the following infix expressions to their postfix equivalents: (a) A – B + C (b) A * B + C / D (c) (A – B ) + C * D / E – C (d) (A * B) + (C / D) – ( D + E) (e) ((A – B) + D / ((E + F) * G)) (f) ( A – 2 * (B + C) / D * E) + F (g) 14 / 7 * 3 – 4 + 9 / 2

      JonSnow07
      JonSnow07
      Added an answer on November 3, 2021 at 11:13 pm

      Download the attachment to get answer

      Download the attachment to get answer

      See less
      Attachment

        • 0
      • Share
        Share
        • Share on WhatsApp
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
    1 2 3 4 5

    Sidebar

    store ads

    Stats

    • Questions 1k
    • Answers 1k
    • Posts 149
    • Best Answers 89
    • This Free AI Tool Translates Entire Books in Minute !
    • AI News: 🎬 Hollywood’s AI Studios, 🎓 OpenAI’s Latest Gift to Educators, 🚚 Class8 Bags $22M, 🧠 Google Gemini’s Memory Upgrade
    • AI NEWS: Legal Action Against OpenAI, $16M Paid, & Elon Musk’s Praise from Investor 🤖💰📑 | AI Boosts Cloud Seeding for Water Security 🌱💧
    • AI News: 🎬AI Video Tool Scam Exposed🤯, 🛰️ AI-Powered Drones to Ukraine 😱, Google’s $20M AI Push, Sam Altman Joins SF’s Leadership Team
    • AI News: 🤝 Biden Meets Xi on AI Talks, 💡 Xavier Niel’s Advice for Europe, ♻️ Hong Kong’s Smart Bin Revolution, 🚀 AI x Huawei

    Explore

    • Recent Questions
    • Questions For You
    • Answers With Time
    • Most Visited
    • New Questions
    • Recent Questions With Time

    Footer

    SIKSHAPATH

    Helpful Links

    • Contact
    • Disclaimer
    • Privacy Policy Notice
    • TERMS OF USE
    • FAQs
    • Refund/Cancellation Policy
    • Delivery Policy for Sikshapath

    Follow Us

    © 2021-24 Sikshapath. All Rights Reserved