FREE : [ Study Material ] NDA/SSB Preparation : Check Now!!! | Latest: HR Interview Questions:CHECK | Like Us :

Friday, 21 December 2012

ISC Class XII Board DateSheet 2013 | cisce.org class 12th



Indian Certificate of Secondary Education (ICSE) has announced the datesheet of class 12th.


Students are searching eagerly for the datesheet but now they can download their Datesheet.

12 class exams will be held from 4 Feb to 25 March 2013

For DateSheet Please click below link
http://www.cisce.org/notice_doc/57Time-Table-ISC-2013-Examination.pdf

Program to swap two Numbers using Temporary Variable | C Program


Input



#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,temp;
clrscr();
printf("Swapping two using a temporary Variable\n");
scanf("%d%d",&a,&b);
printf("Number before Swapping are \ta=%d\tb=%d",a,b);
temp=a;
a=b;
b=temp;
printf("\nNumber after Swapping are \ta=%d\tb=%d",a,b);
getch();
}


Turbo C




Program to Reverse a String | C Program


Input



#include<stdio.h>
#include<conio.h>
void main()
{
int i,n;
char a[30],temp;
clrscr();
printf("Reverse a string\n");
printf("Enter the String\t");
gets(a);
n=strlen(a);
for(i=0;i<n/2;i++)
{
temp=a[i];
a[i]=a[n-i-1];
a[n-i-1]=temp;
}
for(i=0;i<n;i++)
printf("%c",a[i]);
getch();
}


Turbo C



Program to Reverse a Number | C Program


Input



#include<stdio.h>
#include<conio.h>
void main()
{
int num,res=0;
clrscr();
printf("Reverse a Number\n");
printf("Enter the Number to Reversed\n");
scanf("%d",&num);
printf("Number before reverse %d\n",num);
while(num>0)
{
res=10*res+num%10;
num=num/10;
}
printf("Number After reverse\t %d",res);
getch();
}


Turbo C



Program to check whether a Number is Prime or Not | C Program


Input 



#include<stdio.h>
#include<conio.h>
void main()
{
int i,n,flag=0;
clrscr();
printf("Enter the Number to be checked\n");
scanf("%d",&n);
for(i=2;i<n/2;i++)
{
if(n%i==0)
{
flag=1;
break;
}
}
if(flag==0) printf("Number is prime");
if(flag==1) printf("Number is not prime");
getch();
}




Turbo C






Program to calculate the Power of a Number | C program


Input



#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,res=1,i;
clrscr();
printf("Enter the number\n");
scanf("%d",&a);
printf("Enter the Power\n");
scanf("%d",&b);
for(i=b;i>0;i--)
{
res=res*a;
}
printf("a^b=%d\t",res);
getch();
}



Turbo C



 

Results

get our extension

Like Us on FB

    Freshers Jobs

    Donate

    DMCA Protected

    You are Visitor Number

    Interview Questions

    SSB Questions

      Authors
    Tinku Singh
    Hitesh Dhanda

    MrNaukri.com - Get Sarkari Jobs, Results, Off Campus Placement Updates © 2012. All Rights Reserved | Back To Top |

    © 2013 A Product of IBC Network