Posts

Showing posts from December, 2019

Write a program a program that take a number from user . if number is positive, then print “a” on screen (a character variable)

Write a program a program that take a number from user . if number is positive, then print “a” on screen (a character variable) #include<stdio.h> main() { int a; char b; printf("Enter a number"); scanf("%d",&a); if(a>0) { printf("\n character is  A %c",b); } else { printf("number is not positive"); } }

Write a program that take three number from user (a,b,c) . if third number ( c ) is greater then first number ( a ) then display the Square of second number ( b ).

Write a program that take three number from user (a,b,c) . if third number ( c ) is greater then first number ( a ) then display the Square of second number ( b ).                   #include<stdio.h> main() { int a,b,c; printf("enter three numbers"); scanf("%d%d%d",&a,&b,&c); if(c>a) { printf("c is greater than a"); printf(" the square is %d",b*b); } else { printf(" you enter an invalid number"); } }

Write a program that take 2 number from user a and b. if a ( first number ) is odd , then print the next two number of b ( second number).

Write a program that take 2 number from user a and b. if a ( first number ) is odd , then print the next two number of b ( second number). x #include<stdio.h> main() { int a,b; printf("enter a number"); scanf("%d%d",&a,&b); if (a%2!=0) { printf("number is odd"); printf(" \n next number is %d",b+1); printf(" \n next number is %d",b+2); } else  { printf("number is not odd"); } }

Write a program that take a number from user . if number is even then prints the next number .

Write a program that take a number from user . if number is even then prints the next number . #include<stdio.h> main() { int m; printf("enter a number"); scanf("%d",&m); if (m %2==0) { printf("number is even"); printf(" \n next even number is %d",m+1); } else  { printf("number is not even"); } }

Write a program that take 2 number from user and display “ Square” if first number is square of second number.

Write a program that take 2 number from user and display “ Square” if first number is square of second number. #include<stdio.h> main() { int m,s; printf("enter a number"); scanf("%d%d",&m,&s); if (m==s*s) { printf("first number is the square of second number"); } else { printf("first number is  not the square of second number"); } }

Write a program that take 2 numbers from user and display “ number are Equal” if both number are same.

Write a program that take 2 numbers from user and display “ number are Equal” if both number are same. #include<stdio.h> main() { int m, s ; printf("enter two numbers"); scanf("%d%d",&m,&s); if (m==s) { printf("numbers are equal"); } else  { printf("numbers  are  not equal"); } }

Write a program that take a number from user and display “ Divisible by 3” if 3 completely divide the number.( % )

Write a program that take a number from user and display “ Divisible by 3” if 3 completely divide  the number.( % ). #include<stdio.h> main() { int m; printf("entrer a number"); scanf("%d",&m);  if ( m % 3== 0) { printf("number is divisible by 3 completely"); } else { printf("number is NOT divisible by 3 completely");  } }

Write a program that take marks from student and display “ Fail “ if marks are less then 50.

Write a program that take marks from student and display “ Fail “ if marks are less th en 50. #include <stdio.h> main() { int m; printf("enter te marrks"); scanf("%d"&m);   if (m<=50)                 {                    printf("fail");                  }  else { printf("pass");                   }                   }  

Write a program that take marks of a student and display “ Pass “ if marks are greater then 49.

Write a program that take marks of a student and display “ Pass “ if marks are greater then 49. #include <stdio.h> main() { int m; printf("enter te marrks"); scanf("%d"&m);   if (m>=49)                 {                    printf("pass");                  }  else { printf("fail");                   }                   }  

Osi model

Application layer. Presentation layer. Session layer. Transport layer. Network layer. Data link layer. Physical layer.

multiplexer

Image
                MULTIPLEXER  AND  ITS  BASIC TYPES . Definition . "Multiplexing is a method or tecnique inwhich multiple analog and digital signals are combined into one single signal over a shared medium".  Its aims to share source resource .For exammple several phone calls maybe carried from a single wire . Simple words.          "It is a method  to give a way  to multiple signals  from multiple resources into a single way".   "You can say it is the only way who combine multiple signals from multiple ways  and transmit them into a single way for data transmission  along its data is called multiplexing". The device that support multiplexing is called Multiplexer,or MUX. Basic types of Multiplexing. Analog multiplexing. Digital multiplexing.  Analog multiplexing. "It is the method that deals with the analog signals with the help of multipl...

wirerless LAN technology

                   WIRELESS LAN TECHNOLOGY           wireless lan in data communication It is a wireless computer  network connection .Two  or more services using  a wirrerless distribution method with in a limited area as in  school or offrice building etc. it provides mobility within coverage area . Two popular standardizing organizarrtion which support wireless lAN are IEEE & ETS. IEEE stands for the  instirtute of Electrrical Electronics Enginering . ETSIstands for the European Telecommunication Standard Interfaces.                                        ADVANTAGES AND FEATURES. *LAN EXTENTION. In this we donot need to use lan extention to increase our disrtant limitation or to extend the network access. wireless lan covers only the nework with in a building o...