GoDaddy

£5.49 .COMs. from Go Daddy! -468x60

Wednesday, May 9, 2012

Microsoft Access 2007 Urdu Tutorials Complete (playlist)



Playlist URL:
http://www.youtube.com/playlist?list=PLEA7BC03BCA6E4A57
24 Videos, Total Duration of these Videos are 2:38:31

MS Access 2007 Urdu Tutorials Complete

 
Playlist 24 Videos, Total Duration of Videos 2:38:31
http://youtu.be/M851dPF_1aQ

Sunday, April 1, 2012

Flow chart and program that takes two integers from user and print which one is smallest


      Draw    flowchart and write a  program that take two integers from user and print which one is smallest in the following format.
Sample input: Enter any two numbers:
33
58
Sample output: Greater number  is 58.
Hint: use if else.

#include
#include
void main()
{
 int a,b;                                               
 clrscr();
 printf("Enter any two numbers:");
 scanf("%d %d",&a,&b);
 if(a
  printf("%d is smallest..",a);
 else
  printf("%d is smallest..",b);
 getche();
}


Flow chart and Program that take integer value from user and check weather it is even or not


2.   Draw ,flowchart and write a  program  that take any integer from user and check weather it is even or not.
      Hint: use if else
Question # 2
#include
#include
void main()
{
  int a;
  clrscr();
  printf("Please Enter any number:");
  scanf("%d",&a);
  if(a%2==0)
    printf("\nEVEN");
  else
    printf("\nODD");
  getche();
}

C Program and Flow chart that take three numbers from user and print Sum

1.      Draw a  flowchart and  write a program which take three numbers from user and then print their sum in the following format.
Sample input: Enter any three numbers:
21
13
35
           Sample input: sum is 69.

#include
#include
void main()
{
  int a,b,c,sum;
  clrscr();
  sum=0;
  printf("Please Enter THREE numbers:");
  scanf("%d %d %d",&a,&b,&c);
  sum=a+b+c;
  printf("\nSUM is %d",sum);
  getche();
}

Flow chart
 

You might also like:

Related Posts with Thumbnails