36. Accept a Character from user and check if it is a lower case to convert yet into upper
case and vise versa.
Answer :
#include<stdio.h>
#include<conio.h>
Void main()
{
char ch, a;
clrscr();
printf("Enter any character");
scanf("%c", & ch);
if(ch>= 65 && ch<=91)
{
a = ch+32;
printf("Your character is %c", a);
}
else
{
a= ch-32;
printf("Your...
Sunday, 31 August 2014
C Practical Session 7
31. The Program that accept a number from the user and will printf whether it is positive
or negative.
#include<stdio.h>
#include<conio.h>
Void main()
{
int num;
printf("\n Enter any Number:");
scanf("%d", & num);
if(num<0)
printf("\n Number is a Negative Number");
else
printf("\n Number is a Positive Number");
getch();
}
_________________________________________________________________________________
32....
C Practical Session 6
26. Write a Program to find Factorial of any number (from for loop).
Answer :
#include<stdio.h>
#include<conio.h>
Void main()
{
int i, f=1, n;
printf("Enter any Number:");
scanf("%d",&n);
for(i=1; i<=n; i++)
{
f = f*i;
}
printf("Factorial is : %d",f);
getch();
}
_________________________________________________________________________________
27. Accept a Number from...
C Practical Session 5
21. Write a Program to print the sum of as many numbers as user want.
Answer :
#include<stdio.h>
#include<conio.h>
Void main()
{
int num, sum=0;
char reply='y';
while(reply == 'y')
{
printf("\n Enter The Number to Add:");
scanf("%d",&num);
sum= sum+num;
printf("\n Continue(y/n):");
scanf("%c", & reply);
}
printf("\n The sum of all the numbers is =%d", sum);
getch();
}
_________________________________________________________________________________
22....
C Practical Session 4
16. Accept Two Numbers from user and find their sum from "goto" statement.
Answer :
#include<stdio.h>
#include<conio.h>
Void main()
{
int num1, num2, sum, result;
clrscr();
printf("Enter Two Numbers:");
scanf("%d%d",& num1, num2);
printf("\n The Sum of Two Number is:");
go to sum;
printf("\n This Statement is just after the goto Statement\n");
printf("\n *************************");
sum;
result=...
C Practical Section 3
11. Write a Program for Counting the Number 1 to 10.
Answer :
#include<stdio.h>
#include<conio.h>
Void main()
{
int i=1, num;
printf("Enter the Number:");
scanf("%d", & num);
do
{
printf("%d\t", num*i);
i++;
}
while(i<=10);
getch();
}
_________________________________________________________________________________
12. Write a Program that print a table user define number...
C Practical Section 2
6. Write a Program that show all the Even Number between 1 to 100.
Answer :
#include<stdio.h>
#include<conio.h>
Void main()
{
int i=1;
printf("The Even Numbers between 1 to 100 are:");
while(i<=100)
{
if(i%2 == 0)
printf("%d\t",i);
i++;
}
getch();
}
_________________________________________________________________________________
7. Write a Program for count the odd and even...
C Practical Section 1
1. Write a Program to print "Welcome in C Language Programming" on the screen.
Answer :
#include<stdio.h>
#include<conio.h>
Void main()
{
printf("Welcome in C Language Programming");
getch();
}
_________________________________________________________________________________
2. Write a Program to print a message 10 times.
Answer :
#include<stdio.h>
#include<conio.h>
Void...
Saturday, 23 August 2014
C Language Practical
C Language Practical Questions are divided into sections. Each Section contain five questions only.
Section 1
Section 2
Section 3
Section 4
Section 5
Section 6
Section 7
Section 8
Section 9
Section 10
Section 11
Section 12
Section 13
Section 14
Section 15
Section 16
Section 17
Section 18
Section 19
Section 20
Section 21
Section 22
Section 23
Section 24
Section 25
Section 26
Section 27
Section...
Popular Posts
-
26. Write a Program to find Factorial of any number (from for loop). Answer : #include<stdio.h> #include<conio.h> Void m...
Text Widget
Pages
Blog Archive
-
▼
2014
(61)
-
▼
August
(61)
- C Practical Section 8
- C Practical Session 7
- C Practical Session 6
- C Practical Session 5
- C Practical Session 4
- C Practical Section 3
- C Practical Section 2
- C Practical Section 1
- C Language Practical
- C Language Theory
- ASCII Codes
- C++ Practical Section 12
- C++ Practical Section 11
- C++ Practical Section 10
- C++ Practical Section 9
- C++ Practical Section 8
- C++ Practical Section 7
- C++ Practical Section 6
- C++ Practical Section 5
- C++ Practical Section 4
- Unix Keyboard Shortcut keys
- Visual Studio Keyboard Shortcut keys
- Windows Movie Maker Shortcuts keys
- Window Media Player Shortcut Keys
- Adobe Reader Keyboard Shortcut keys
- Mozilla Firefox Keyboard Shortcut keys
- Google Chrome Keyboard Shortcut keys
- Internet Explorer Keyboard Shortcut Keys
- MS-Access Keyboard Shortcut keys
- MS PowerPoint Keyboard Shortcut keys
- MS-Word Keyboard Shortcut keys
- MS-Excel Shortcut keys
- Common Shortcut keys
- Keyboard Shortcut Keys
- C++ Practical Section 3
- C++ Practical Section 2
- C++ Practical Section 1
- Memory
- Registers
- Instruction Sets
- Central Processing Unit
- Introduction of Computer Organisation
- Data Hierarchy and Troubleshoot
- Computer Generations
- History of Computer
- Classification of Computers
- Storage Unit
- Practical of C++
- C Language Theory
- Basic Operations of Computers
- Characteristics of Computers
- Definition of Computer
- Software Application Skills
- DBMS
- Multimedia
- Presentation Package
- Spread Sheet Package
- Word Processing
- Operating System
- Computer Organisation
- Computer Appreciation
-
▼
August
(61)
Powered by Blogger.
Text Widget
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation test link ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate another link velit esse cillum dolore eu fugiat nulla pariatur.
Duis aute irure dolor in reprehenderit in voluptate another link velit esse cillum dolore eu fugiat nulla pariatur.
No one has ever become poor by giving, Please Donate
About Me
Contact Form
Contact Us
Blog Archive
-
▼
2014
(61)
-
▼
August
(61)
- C Practical Section 8
- C Practical Session 7
- C Practical Session 6
- C Practical Session 5
- C Practical Session 4
- C Practical Section 3
- C Practical Section 2
- C Practical Section 1
- C Language Practical
- C Language Theory
- ASCII Codes
- C++ Practical Section 12
- C++ Practical Section 11
- C++ Practical Section 10
- C++ Practical Section 9
- C++ Practical Section 8
- C++ Practical Section 7
- C++ Practical Section 6
- C++ Practical Section 5
- C++ Practical Section 4
- Unix Keyboard Shortcut keys
- Visual Studio Keyboard Shortcut keys
- Windows Movie Maker Shortcuts keys
- Window Media Player Shortcut Keys
- Adobe Reader Keyboard Shortcut keys
- Mozilla Firefox Keyboard Shortcut keys
- Google Chrome Keyboard Shortcut keys
- Internet Explorer Keyboard Shortcut Keys
- MS-Access Keyboard Shortcut keys
- MS PowerPoint Keyboard Shortcut keys
- MS-Word Keyboard Shortcut keys
- MS-Excel Shortcut keys
- Common Shortcut keys
- Keyboard Shortcut Keys
- C++ Practical Section 3
- C++ Practical Section 2
- C++ Practical Section 1
- Memory
- Registers
- Instruction Sets
- Central Processing Unit
- Introduction of Computer Organisation
- Data Hierarchy and Troubleshoot
- Computer Generations
- History of Computer
- Classification of Computers
- Storage Unit
- Practical of C++
- C Language Theory
- Basic Operations of Computers
- Characteristics of Computers
- Definition of Computer
- Software Application Skills
- DBMS
- Multimedia
- Presentation Package
- Spread Sheet Package
- Word Processing
- Operating System
- Computer Organisation
- Computer Appreciation
-
▼
August
(61)
Search This Blog
Labels
- C Practical (9)
- C++ Practical (12)
- Computer Theory (26)
- Exams (1)
- Keyboard Shortcut Keys (14)
- Photo Gallery (2)
Unordered List
- Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
- Aliquam tincidunt mauris eu risus.
- Vestibulum auctor dapibus neque.
Theme Support
Need our help to upload or customize this blogger template? Contact me with details about the theme customization you need.
Site Links
About
Hello, my name is Jack Sparrow. I'm a 50 year old self-employed Pirate from the Caribbean.
Learn More →
Follow on Facebook
Follow on Facebook
Featured
Site Links
Popular Posts
Copyright © 2025
Geniusbhai | Powered by Blogger
Design by Flythemes | Blogger Theme by NewBloggerThemes.com