Posts

AREA AND PERIMETER OF RECTANGLE

#include<stdio.h> #include<conio.h> void main() { float b,l,A,P; printf("Enter length and breadth of rectangle:\n"); scanf("%f%f",&l,&b); A=l*b; P=2*(l+b); printf("Area of Rectangle: %f\n",A); printf("Perimeter of Rectangle : %f",P); getch(); }

QUOTIENT AND REMENDER OF DIVISION

#include <stdio.h> #include<conio.h> void main() {     int dividend, divisor, quotient, remainder;     printf("Enter dividend and divisor\n");     scanf("%d%d",&dividend,&divisor);     quotient=dividend/divisor;     remainder=dividend%divisor;     printf("Quotient = %d\n",quotient);     printf("Remainder = %d",remainder);     getch(); } TikTok Gifts Best college in Kathmandu

sec to hr min sec

#include<stdio.h> #include<conio.h> void main() {  int sec,hr,min; printf("Enter the Time in seconds:\n"); scanf("%d",&sec); hr=sec/3600; min=(sec-(hr*3600))/60; sec=(sec-(hr*3600))%60; printf("ime in hour:min:sec is \n%d:%d:%d",hr,min,sec); getch(); } Mobile price in Nepal Laptops Price in Nepal

KM TO CM

#include<stdio.h> #include<conio.h> void main() { float km,m,cm; printf("Enter distance in km:\n"); scanf("%f",&km); cm=km*100000; printf("Distance in centimeters is%f\n",cm); getch(); } Online Shopping in Nepal Online Shopping Nepal Online Shopping

volume of sphere

#include<stdio.h> #include<math.h> void main() {     float r,pi=3.14,v;     printf("Enter the radius:");     scanf("%f",&r);     v=(4/3)*pi*pow(r,3);     printf("The volume is:%.2f",v);   getch(); } Mero Share