Create a program that will use a function, that will perform and display the sum, difference, product, and quotient of 2 numbers.
Switch Statement
Sample output:
Enter any one of the alphabets a,b,or c:A
You are in case A
Sample output 1:
Enter any one of the alphabets a,b,or c:a
You are in case a
Sample output 2:
Enter any one of the alphabets a,b,or c:b
You are in case b
Rahul wants to display the n terms of odd natural number and calculate their sum. Help him
to develop a program in C to perform the task using for loop.
Write a C program for File Operations to get a character from the keyboard and print the entered character using fgetchar() and fputchar() function.
Runtime Input :
a
Output :
a
Design a C program to concatenate two messages and display of message and string length
Runtime Input :
string concatenate
Output :
stringconcatenate
17
Develop a C program to copy the content of one file and store that content in another file.
Runtime Input :
Good Morning
Output :
Good Morning
The file named called EMPLOYEE.txt contains employee details such as employee number, name, designation and salary of employee. Write a program to create a file to store the details of employee (Use of structure and fwrite () & fread () functions).
Runtime Input :
101 xyz workshop 8500
102 nmo computer 6750
103 abc store 5890
Enter·n:·214
4
1
2
Write a C program that is going to use function to calculate the perimeter of a circle
Input three characters in three different lines.
Print out "Equal" if all of the characters are equal. Otherwise, print out "Not Equal". Note, however, that in C language, uppercase and lowercase letters are not equal.
Enter·the·first·character:·C
Enter·the·second·character:·c
Enter·the·third·character:·C
Not·Equal