Friday, March 8, 2013
Thursday, March 7, 2013
Internet Explorer
The latest browser for Windows XP
Safer
Built-in security features like SmartScreen Filter let you be more aware of online threats, and help protect your PC and your privacy. Easier The redesigned New Tab page and improved favorites take you to the sites you love in fewer clicks. Reliable Internet Explorer 8 is designed to be more reliable. Features like Crash Recovery help ensure that your browsing remains uninterrupted, even when a website isn't working correctly.
For Download Click below
|
Write a program in C to print following pattern or triangle
Write a program in C to print following pattern or triangle
*
**
***
****
*****
******
*******
Solution:
/*Write a program in C to print following pattern or triangle*/
#include<stdio.h>
#include<conio.h>
main()
{
int n;
clrscr();
printf("Enter number of Rows\t");
scanf("%d",&n);
for(int i=1;i<=n;i++){
for(int j=1;j<=i;j++){
printf("*");}
printf("\n");}
getch();
}
Output: Enter number of Rows 7
*
**
***
****
*****
******
*******
*
**
***
****
*****
******
*******
Solution:
/*Write a program in C to print following pattern or triangle*/
#include<stdio.h>
#include<conio.h>
main()
{
int n;
clrscr();
printf("Enter number of Rows\t");
scanf("%d",&n);
for(int i=1;i<=n;i++){
for(int j=1;j<=i;j++){
printf("*");}
printf("\n");}
getch();
}
Output: Enter number of Rows 7
*
**
***
****
*****
******
*******
Sunday, March 3, 2013
Develop and initialize the given array in a C program that asks User to Enter an integer number for searching. The program witl check the entered number is prsesent in the array or not
Develop and initialize the given array in a C program that asks User to Enter an integer number for searching. The program witl check the entered number is prsesent in the arra or not
| 13 | 37 | 52 | 60 | 10 |12 | 15 | 18 | 42 | 25 | 30 | 48 | 20 |
Solution:
/*Develop and initialize the given array in a C program that asks User to Enter an integer number for searching. The program witl check the entered number is prsesent in the arra or not*/
#include<stdio.h>
#include<conio.h>
main()
{
int num[12]={13,37,52,10,12,15,18,42,25,30,48,20},n;
clrscr();
printf("Enter any integer\t");
scanf("%d",&n);
if(n==num[n])
{
printf("\nNumber is present");
}
else
printf("\n Number is not prsent");
getch();
}
| 13 | 37 | 52 | 60 | 10 |12 | 15 | 18 | 42 | 25 | 30 | 48 | 20 |
Solution:
/*Develop and initialize the given array in a C program that asks User to Enter an integer number for searching. The program witl check the entered number is prsesent in the arra or not*/
#include<stdio.h>
#include<conio.h>
main()
{
int num[12]={13,37,52,10,12,15,18,42,25,30,48,20},n;
clrscr();
printf("Enter any integer\t");
scanf("%d",&n);
if(n==num[n])
{
printf("\nNumber is present");
}
else
printf("\n Number is not prsent");
getch();
}
Saturday, March 2, 2013
Write a program in C to print following pattern or opposite pyramid or opposite trinagle.
Write a program in C to print following pattern or opposite pyramid or opposite trinagle.
###########
#########
#######
#####
###
#
#include<stdio.h>
#include<conio.h>
main()
{
int n;
clrscr();
printf("Enter the number of rows you want to print\t);
scanf("%d",&n);
for(int r=n;r>=1;r--){
for(int s=1;s<=n-r;s++){
printf(" ");
}
for(int p=1-r;p<r;p++){
printf("#"); \*put anythinh from sajjadsaeed*/
}
printf("\n");
}
getch();
}
For Download Click below
###########
#########
#######
#####
###
#
#include<stdio.h>
#include<conio.h>
main()
{
int n;
clrscr();
printf("Enter the number of rows you want to print\t);
scanf("%d",&n);
for(int r=n;r>=1;r--){
for(int s=1;s<=n-r;s++){
printf(" ");
}
for(int p=1-r;p<r;p++){
printf("#"); \*put anythinh from sajjadsaeed*/
}
printf("\n");
}
getch();
}
For Download Click below
Subscribe to:
Posts (Atom)