Program for printing the last digit of an integer in words

Program for printing the last digit of an integer in words

#include<stdio.h> #include<conio.h> void main() { long no; clrscr(); printf("n Enter an integern"); scanf("%ld",&no); switch(no%10) { case 0: printf("n...
Program for finding difference of two dates

Program for finding difference of two dates

#include<stdio.h> #include<conio.h> void main() { int d1, m1, y1; /* first date */ int d2, m2, y2; /*...
Program for updating the date by one day

Program for updating the date by one day

#include<stdio.h> #include<conio.h> void main() { in d,m,y; clrscr(); printf("Enter date d, m, yn"); scanf("%d%d%d",&d, &m, &y); /* Increase the day...
Program for largest and second largest of three numbers

Program for largest and second largest of three numbers

#include<stdio.h> #include<conio.h> void main() { int a,b,c; clrscr(); printf("Enter three numbersn); scanf("%d%d%d",&a,&b,&c); if((a<b)&&(a>c)) /* checking for a is largest */ ...
Program for updating the time by one second

Program for updating the time by one second

#include<studio.h> #include<conio.h> #include<math.h> void main() { int h,m,s; clrscr(); printf("Enter time h m sn); scanf("%d%d%d",&h,&m,&s); if((h<0)||(m<0)||(s<0)) /* hour or minute or...
Program for finding the area of triangle when three sides are given

Program for finding the area of triangle when three sides are given

#include<stdio.h> #include<conio.h> void main() { float a,b,c,s,area; clrscr(); printf("Enter three sides a b cn"); scanf("%f%f%f",&a,&b,&c); if((a<=0)||(b<=0)||(c<=0)) /* a side of...
Program to largest of three numbers

Program to find largest of three numbers

#include<stdio.h> #include<conio.h> void main() { int a,b,c; clrscr(); printf("Enter three numbersn"); scanf("%d%d%d",&a,&b,&c); if((a>b)&&(b>c)) /* use of logical &&, which gives true...
Program to finding the roots of quadratic equation

Program to finding the roots of quadratic equation

#include<stdio.h> #include<conio.h> #include<conio.h> void main() { float a,b,c,d,root1,root2; clrscr(); printf("Enter a b c n"); scanf("%f%f%f",&a,&b,&c); d=b*b-4*a*c; /* finding determinant */ ...
Program for checking a number is positive negative or zero

Program to check a number is positive negative or zero

#include<stdio.h> #include<conio.h> void main() { int a; clrscr(); printf("Enter a numbern"); scanF("%d",&a); if(a>0) printf("n positive number n"); ...
program to check a number is even or odd

Program to check given number is odd or even

  #include<stdio.h> #include<conio.h> void main() { int a; /* for any integer */ clrscr(); printf("Enter a number n"); ...

Stay connected

18,538FansLike
1,952FollowersFollow
14,700SubscribersSubscribe
- Advertisement -

Latest article

Python-punctuatorts

punctuatorts

Punctuatorts क्या होते हैं? punctuatorts वे symbol हैं जो प्रोग्रामिंग भाषाओं में वाक्य संरचनाओं को व्यवस्थित करने के लिए उपयोग किए जाते हैं, और भावों,...
Python-Identifiers

Python Identifiers

Identifier क्या है? Identifier एक नाम होता है जिसमें कुछ Name, letters, special character (केवल _ underscore) का use होता है Identifier का use...
Python tokens

Tokens

टोकन क्या है? किसी भी passage में कोई भी text कोई single word या punctuation  mark  टोकन कहलाते  हैँ | ठीक उसी प्रकार एक Python...