Posts

Welcome to the graphics designing

Welcome to the graphics designing We will discuss about the basic keys and some special keys of the html in this blog page. HTML is the standard markup language for creating Web pages. HTML stands for Hyper Text Markup Language HTML describes the structure of a Web page HTML consists of a series of elements HTML elements tell the browser how to display the content HTML elements are represented by tags HTML tags label pieces of content such as "heading", "paragraph", "table", and so on Browsers do not display the HTML tags, but use them to render the content of the page. The HTML document itself begins with  <html>  and ends with  </html> . The visible part of the HTML document is between  <body>  and  </body> . HTML Headings HTML headings are defined with the  <h1>  to  <h6>  tags. <h1>  defines the most important heading.  <h6>  defines the least im...

welcome to the python

hello there are some  exercises that might be helpful for you to learn python in easy way.  print('mohsin') or print("mohsin")      to print mohsin on screen .  here you can write anyting in the cotations to display anything on the screen. you can also use print to call any previous  defined or initialized value like                                  price = 10 print (price) this is the code that is going to display value of price on the screen. it means when you use print without quoations like print(price) it will display the value of the variable that you entered in the small brackets. so it means that print can either display value and it can call the variables also . so it can involve 2 functions in its brackets examle if we write this code print(' * ' *10) then we will see ********** ...

Write a program that take a number from user . if number is positive, then print first five alphabets of a,b,c on screen .

Write a program that take a number from user . if number is positive, then print first five alphabets of a,b,c on screen .  #include<stdio.h> main() { int a; char b; printf("Enter a number"); scanf("%d",&a); if(a>0) { printf("numer is positive");  for(b=1;b<=5;b++){    printf("\n character is %c",b); } } else { printf("number is not positive"); } }

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"); } }