Posts

Continue statement in C

Image
  Problem - Continue  Statement in C  Continue statement is used to continue the next iteration of the loops. Basically , Continue is a keyword in C  Problem solving - code- #include<stdio.h>   int main() {   int i=1;   //initializing a local variable         //starting a loop from 1 to 10     for(i=1;i<=10;i++) {       if(i==5) //if value of i is equal to 5, it will continue the loop  {       continue;  //continue the next iteration in loop   }     printf("%d\n",i);     } return 0;   }  N.B.       This code has written in Dev c ++ Editor . Output :  1 2 3 4 6 7 8 9 10 -------------------------------- Process exited after 0.2832 seconds with return value 0 Press any key to continue . . . Our YT channel link :  https://youtu.be/qTdQxVPxrog Our Telegram Group lin...

Draw Iron Man Face with python -

Image
  source code -(This code is written in pycharm editor ) from sketchpy import library as lib  obj = lib.rdj() obj.draw() Source code - output- NOTE:- Pls write a command pip  install sketchpy in your terminal or in command prompt in your system before run this code .

simple program about else -if statement :-

Image
source code :- output:- --------THANKS FOR  VISITING THIS PAGE 

How to generate your own QR code using Python :-

Image
 source code :(This code has been written in  pycharm editor ) import qrcode as qr img=qr.make("https://www.youtube.com/channel/UC2QqH7o8Cw_VJ9AY0Pz7LOg") img.save("my qr code.png") output:(QR code ):

C program to check whether a number is divisible by 5 and 11

Image
#include <stdio.h> int main () { int number ; printf ("enter number "); scanf ("%d",&number); if (number %5==0 &&number%11==0) { printf ("Yes ,your enetered number is divisible "); } else  { printf (" sorry ,your enetered number is not divisible "); } return 0; }   INPUT :- OUTPUT :-                                                                                                                    - THANKING YOU  

Eligible for vote or not in C programming

Image
 QUESTION :                    Eligible for vote or not  :-(using If-Else ladder )   SOURCE CODE :   int main () { int age ; printf ("Enter your own age "); scanf (" %d",&age); if (age>=18) { printf (" Yes, you are eligible for vote  "); } else  { printf (" Sorry ,now you are not eligible for vote  "); } return 0; } INPUT : OUTPUT :                                                                                                       ------ THANK YOU FOR VISITING THIS PAGE 

Find The Largest Number Among Three Numbers

Image
                       QUESTION :          Find the Largest Number Among Three Numbers SOURCE CODE :- #include <stdio.h> int main () { int num1,num2,num3; printf (" enter three number "); scanf (" %d%d%d",&num1,&num2,&num3); if (num1>=num2&&num1>=num3) { printf("num 1 is bigger=%d ",num1); } else if (num2>=num1&&num2>=num3) { printf ("num 2 is bigger=%d ",num2); } else  printf (" num 3 is bigger=%d ",num3); return 0 ; } INPUT :- OUTPUT :-                                                                      ------ THANK YOU FOR VISITING THIS PAGE