Posts

Showing posts from September, 2021

Program to demonstrate few math Methods java

Write a C Program to print fibonacci series.

Write a C Program to generate multiplication table.

Write a C Program to find factorial of number

Write a C Program to check if given character is digit or alphabet.

Age Calculations in cpp

Age Calculation in cpp

Important things to remember in c programing

Image
For Header File always use the   #include <stdio.h> and #include <conio.h> Also for taking a variable from user scanf("%d", &num);  Read integer number using '%d'  printf("Entered number is %d", num);   // Displaying 'num' on screen In C programming language, %d and %i are format specifiers as where %d specifies the type of  variable as decimal  and %i specifies the type as integer. More and more is added  

Program to calculate simple interest in c program

Program to calculate simple interest yaha per * ye dena jaruri he warna error ayega or mene float use kiya he #include int main () { float p, t, r, si; printf ("Enter p"); scanf ("%f", &p); printf ("Enter t"); scanf ("%f", &t); printf ("Enter r"); scanf ("%f", &r); si = (p * t * r) / 100; printf ("Simple int are= %f", si); return 0; }

Program of Transcersal in c lang of Data Structure

Program of Transcersal in c lang of Data Structure //Program of Transcersal in c lang of Data Structure #include <stdio.h> #include <conio.h> int main() { int a[50],size,i; printf("enter size of array:"); scanf("%d", &size); printf("ENTER element of array:"); for (i=0; i<size; i++) { scanf("%d", &a[i]); } printf("ele in array are:"); for (i=0; i<size; i++) { printf("%d", a[i]); } return 0; } input 2 12345 Output enter size of array: ENTER element of array: ele in array are:123450

Function : Types

Function Types There is two types of Function 1.User Defined  2.Buildin Function //Temprory Code main() {........ ........ fun1(); fun2(); } fun1() {.... } fun2() {.... }

Age by cpp programing using if nested

Age by cpp programing using if nested #include #include int main() { int age; clrscr(); cout >age; if (age>=10 && age =10 && age Enter your age: 34 Not Teenager

Java using Increment operator

Java increment operator on 13/09/2021 //Java using increment operator public class Main { public static void main(String[] args) { int a=10; int b=20; int c,d; c=b++; d=++a; c++; System.out.println("a ="+a); System.out.println("b ="+b); System.out.println("c ="+c); System.out.println("d ="+d); } } a =11 b =21 c =21 d =11 ...Program finished with exit code 0 Press ENTER to exit console.

Code Starting of cp lang

Hello its Code Startup Of C Date 13/09/2021 //Hello its starting of c lang #include int main() { printf("Hello World"); return 0; } Output Hello World ...Program finished with exit code 0

How to take screenshot in laptop

Image
How to take screenshot in laptop How to take a screenshot on Windows 10 with the PrtScn key For taking a screenshot in laptop there is many ways such as : For taking screenshot in laptop there is a key to press such as : Press Windows key + Alt + PrtScn keys This butten is to press to take a Screenshot Press the Windows key + Shift + S . The screen will dim and the mouse pointer will change. You can drag to select a portion of the screen to capture. The screenshot will be copied to the clipboard, which you can paste into another program. (This shortcut only works if you have the latest version of Windows 10 installed, called the Windows 10 Creators Update.) Press the Windows key + PrtScn. This saves the entire screen as an image file. You can find it in the "Pictures" folder, in a subfolder called "Screenshots.