Assignment06.c - *Programmer Tanner Cassady Email...

This preview shows page 1 - 2 out of 3 pages.

/*Programmer: Tanner Cassady Email: [email protected] CNIT 105, assignment 06 Wednsday / 9:30 Program Description:Prompt's the user for two whole numbers with the first number smaller than the second. Present a menu of options and prompt the user to select an option. Use the switch statement to carry out the selected option. Academic Honesty: I attest that this is my original work. I have not used unauthorized source code from online resources nor from other students. I have not given other fellow student(s) access to my program. */ #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <conio.h> #include <math.h> //display variables void display_menu(); int compute_factorial(int n1); void Display_myInfo(); int main() { //display variables int option; int n1; int n2; int factorial; int num; int sum; Display_myInfo(); do { printf("\t Enter two whole numbers n1 < n2: "); scanf("%d %d", &n1, &n2); } while (n2 < n1); display_menu(); //invoke function printf("\n\t Select an option: "); //Tell user to select an option scanf("%d", &option); do { switch (option) { case 1:
Image of page 1

Subscribe to view the full document.

Image of page 2
  • Fall '19
  • Addition, Return statement, Summation, Void type

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Ask Expert Tutors You can ask 0 bonus questions You can ask 0 questions (0 expire soon) You can ask 0 questions (will expire )
Answers in as fast as 15 minutes