Teaching programming is just like explaining a really dumb kid to do something. #Programming #PCWalay #teaching https://www.instagram.com/p/CdOWJxSqNM0/?igshid=NGJjMDIxMWI=

#dc comics#dc#batman#dick grayson#dc fanart#bruce wayne#tim drake#batfam#batfamily




seen from United Kingdom

seen from Chile

seen from China
seen from Canada

seen from Malaysia
seen from United States

seen from United Kingdom

seen from United States
seen from Israel

seen from Israel

seen from France

seen from Türkiye
seen from United States
seen from China

seen from United States
seen from United States

seen from Türkiye
seen from United States

seen from Malaysia

seen from United States
Teaching programming is just like explaining a really dumb kid to do something. #Programming #PCWalay #teaching https://www.instagram.com/p/CdOWJxSqNM0/?igshid=NGJjMDIxMWI=
9th Class date Sheet for all educational boards of Punjab. #exams #paper #PCWalay https://www.instagram.com/p/CdF57SvqX2d/?igshid=NGJjMDIxMWI=
C Program to convert time elapsed into seconds
#include <stdio.h>
#include<conio.h>
void main() {
int time, hours, minutes, seconds;
printf("Enter time in format h m s : \n");
scanf("%d %d %d", &hours, &minutes, &seconds);
time = ((hours * 3600) + (minutes * 60) + seconds);
printf("%02d : %02d : %02d = %d Seconds", hours, minutes, seconds, time);
getch();
}
C Program to round off any number to 2 decimal places
#include<stdio.h>
#include<conio.h>
void main()
{
float n; // Variable declaration
printf ("Enter any number : ");
scanf ("%f", &n);
printf ("Number = %.2f", n);
getch();
}
C Program to Print ASCII value of any character
#include <stdio.h>
int main() {
char c;
printf("Enter a character: ");
scanf("%c", &c); // Reads character input
// %d displays the integer value of a character
// %c displays the actual character
printf("ASCII value of %c = %d", c, c);
return 0;
}
C Program to convert feet to meter
#include <stdio.h>
void main() {
float meter, feet;
printf("Enter feet : ");
scanf("%f", &feet);
meter = feet / 3.2808399;
printf("meter: %f", meter);
return 0;
}
C Program to perform all Arithmetic operations
#include <stdio.h>
void main()
{
int x, y;
printf("Enter Two numbers:\n");
scanf("%d %d", &x, &y);
printf("Sum = %d\n", x + y);
printf("Difference = %d\n", x * y);
printf("Product = %d\n", x - y);
printf("Division = %d\n", x / y);
}
C Program to swap values of two variables
This program shows how the values of two variables can be swapped with the help of a third variable.
#include <stdio.h>
int main() {
int n1, n2, temp;
printf("Type value of number 1 : ");
scanf("%d", &n1);
printf("\nType value of number 2 : ");
scanf("%d", &n2);
temp = n1;
n1 = n2;
n2 = temp;
printf("After swapping values \n");
printf("number 1 : %d", n1);
printf("\nnumber 2 : %d", n2);
return 0;
}