The document outlines several programming assignments for an internship program focused on problem solving with C, including tasks such as determining if a number is divisible by 100, displaying months by name from a digit input, identifying types of quadrilaterals, calculating prime factors and sums of digits, and printing patterns based on user inputs. The assignments involve accepting user input, using control structures like switch statements, defining functions, and calculating mathematical expressions and series.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
48 views4 pages
Assignmnet 1 PDF
The document outlines several programming assignments for an internship program focused on problem solving with C, including tasks such as determining if a number is divisible by 100, displaying months by name from a digit input, identifying types of quadrilaterals, calculating prime factors and sums of digits, and printing patterns based on user inputs. The assignments involve accepting user input, using control structures like switch statements, defining functions, and calculating mathematical expressions and series.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4
Internship Program
(Problem Solving with C)
Assignments Assignment -2 ● Accept any number from the user. Display whether the number is divisible by 100 or not. ● Accept a month in digit from the user. Display the month in words. If number is not between 1 and 12 display message “Invalid Month”. (Use ‘switch’) ● Display all prime numbers between 50 and 150. ● Write a C function that will accept a quadrilateral as a parameter and classify it whether it is a A Square. A Rhombus. A Rectangle. ● Following is the menu to be displayed to the user. On selecting a choice display appropriate result. Number should be accepted from the user. Menu 1. Prime Factors 2. Leap Year 3. Sum of all digits 4. Number in reverse order ● Write a program to obtain sum of the first 10 terms of the following series for any positive integer value of X : X +X3 /3! +X5 /5! ! +X7 /7! + … Write a program that accepts an input integer ‘n’ in the range 3-9 inclusive, and display the following pattern on a cleared screen. Sample input for n=3 Sample input for n=4 Sample output Sample output 3 4 2 3 2 3 4 3 1 2 3 2 1 2 3 4 3 2 2 3 2 1 2 3 4 3 2 1 3 2 3 4 3 2 3 4 3 4