0% found this document useful (0 votes)
59 views

C Practical List 2021-22

This document outlines programming exercises for students learning C programming. It includes 5 practical assignments with 5 programming problems each, covering basic I/O, operators, conditional statements, loops, arrays, structures, pointers, functions, and file I/O. The problems increase in complexity within and across the practical assignments, introducing new C concepts and building on previous ones. Some examples include writing programs to print names and patterns, perform arithmetic, check number types, iterate through arrays and numbers, define and call functions, and read/write files.

Uploaded by

Shivam Chauhan
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
59 views

C Practical List 2021-22

This document outlines programming exercises for students learning C programming. It includes 5 practical assignments with 5 programming problems each, covering basic I/O, operators, conditional statements, loops, arrays, structures, pointers, functions, and file I/O. The problems increase in complexity within and across the practical assignments, introducing new C concepts and building on previous ones. Some examples include writing programs to print names and patterns, perform arithmetic, check number types, iterate through arrays and numbers, define and call functions, and read/write files.

Uploaded by

Shivam Chauhan
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

A V PAREKH TECHNICAL INSTITUTE RAJKOT

Programming In C (3331105)
Practical’s List AY 2021-22
Practical 1
1. Write a program to print your name on screen. (CO1)
2. Write a program to print your address(in multiple lines) on screen. (CO1)
3. Write a program to print some pattern made by some symbol (ie, * $) on screen. (CO1)
4. Write a program to print some tabular data on screen by use of \t and \n characters. (CO1)
5. Write a program to print different kinds of numbers on screen by printf function. (CO1)

Practical 2
1. Write a program to take input of two integer numbers from user, store it in some variables and
display addition, subtraction, multiplication, division and modulo division results on screen. (CO2)
2. Write a program to take input of two floating point numbers from user, store it in some variables
and display addition, subtraction, multiplication, division and modulo division(by casting) results
on screen. (CO2)
3. Write a program to store some number on an integer variable and display it in various possible
formats by printf function. (CO2)
4. Write a program to store some number on an floating point variable and display it in various
possible formats by printf function. (CO2)
5. Write a program to get input of a string data from user and display it back in capital letters by use
of gets and puts functions. (CO2)

Practical 3
1. Write a program to check if entered number is odd or even (with help of if, if_else and ?: operator)
(CO3)
2. Write a program to check if entered number is positive, negative or zero (with help of if, if_else
and else_if ladder). (CO3)
3. Write a program to display odd numbers between 1 to 50 (with help of for, while and do_while). (CO3)
4. Write a program to display even numbers between 1 to 50 but omit numbers starting with 3(by
continue statement). (CO3)
5. Write a program to add positive numbers entered by user but stop adding if user enters any
negative number (by while or do_while). (CO3)

Practical 4
1. Write a program to input numbers an integer array and display them (by use of any loop). (CO4)
2. Write a program to add elements of two integer arrays and store in third array and display that
result array. (CO4)
3. Write a program to input a String and display its reverse on screen (by array or pointer). (CO4)
4. Write a structure called student_data, store three members inside it called name, gender and age
and with help of that structure scan 5 student’s such data and display it back on screen (use any
one kind of loop to do it). (CO4)
5. Write a program to store a string with the help of a pointer and display it back on screen with the
help of pointer (use any loop for it and display character by character). (CO4)

Practical 5
1. Write a program to display factorial of a given number by the user of recursion. (CO5)
2. Write a program to make a user defined square function and use it to display square of number
entered by the user in main program. (CO5)
3. Write a program to display square root of floating point number entered by the user (user math.h).
(CO5)
4. Write a program to get some string data from user and store it in a text file. (CO5)
5. Write a program to read data from some text file and display it on screen. (CO5)

You might also like