Sunday, 30 June 2019
Tuesday, 25 June 2019
To check whether a number is divisible by 6 and 4
Irawen June 25, 2019 No comments
To check whether a number is divisible by 6 and 4
Input :
Output :
Code :
#include <stdio.h>
int main()
{
int c;
printf("Enter a number :\n");
scanf("%d",&c);
{ if ((c%6==0) && (c%4==0))
printf("The number is divisible by 6 and 4\n");
else
printf("The number is not divisible by 6 and 4\n");
}
return 0;
}
Input :
Output :
Code :
#include <stdio.h>
int main()
{
int c;
printf("Enter a number :\n");
scanf("%d",&c);
{ if ((c%6==0) && (c%4==0))
printf("The number is divisible by 6 and 4\n");
else
printf("The number is not divisible by 6 and 4\n");
}
return 0;
}
Monday, 24 June 2019
To Check whether a number is prime or not
Irawen June 24, 2019 No comments
To Check whether a number is prime or not
Input:-

Output:-
1)

2)

Code:-
#include <stdio.h>
#include <stdlib.h>
int main()
{
int a,i,ans;
printf("Enter a number : \n");
scanf("%d",&a);
for(i=2; i<=a/2;i++ )
ans=a%i;
{
if ( ans==0)
printf("The number is not prime ");
else
printf("The number is prime ");
}
return 0;
}
Input:-
Output:-
1)
2)
Code:-
#include <stdio.h>
#include <stdlib.h>
int main()
{
int a,i,ans;
printf("Enter a number : \n");
scanf("%d",&a);
for(i=2; i<=a/2;i++ )
ans=a%i;
{
if ( ans==0)
printf("The number is not prime ");
else
printf("The number is prime ");
}
return 0;
}
Program to check divisibility by 5
Irawen June 24, 2019 No comments
Program to check divisibility by 5
Input:
Output:
1)

2)
Code:
#include <stdio.h>
#include <stdlib.h>
int main()
{
int a;
printf("Enter a number : \n");
scanf("%d",&a);
{
if ( a%5==0)
printf("The number is divisible by 5 ");
else
printf("The number is not divisible by 5 ");
}
return 0;
}
Input:
Output:
1)
2)
Code:
#include <stdio.h>
#include <stdlib.h>
int main()
{
int a;
printf("Enter a number : \n");
scanf("%d",&a);
{
if ( a%5==0)
printf("The number is divisible by 5 ");
else
printf("The number is not divisible by 5 ");
}
return 0;
}
Sunday, 23 June 2019
C Program to check sum is less than or greater than hundred
Irawen June 23, 2019 No comments
C Program to check sum is less than or greater than hundred
Input :-
Output :-
1)
2)
3)
Code :-
#include <stdio.h>
#include <stdlib.h>
int main()
{
int a, b,c;
printf("Enter a number \n");
scanf("%d",&a );
printf("Enter another number \n");
scanf("%d",&b);
c=a+b;
printf("The Sum is = %d\n\n",c);
{
if (c<100)
printf("The Sum Is Less Than Hundred \n\n\n");
else if (c==100)
printf("The sum is hundred");
else
printf("The sum is greater than hundred \n\n\n\n");
}
return 0;
}
Saturday, 22 June 2019
Popular Posts
-
If you’ve ever wanted to learn how to code, Python is one of the best languages to start with. It’s simple, readable, and widely used acr...
-
Machine learning has become one of the most essential skills in technology today. It powers personalized recommendations, fraud detection ...
-
Artificial Intelligence (AI) is no longer confined to research labs — it’s now central to business innovation, technology strategy, and ev...
-
Introduction Machine Learning (ML) is one of the most influential technologies in today’s digital world. From recommendation systems and v...
-
Computer vision — the field that enables machines to see , interpret, and act on visual data — is one of the most exciting areas of artifi...
-
Deep learning has rapidly emerged as a driving force behind many of the most impressive advancements in artificial intelligence. From voic...
-
In modern software development, automation isn’t a luxury — it’s a necessity. DevOps practices aim to accelerate delivery while maintainin...
-
Explanation: 1. Creating a Tuple a = (1, 2, 3) This line creates a tuple named a. A tuple is an ordered collection of elements. Tuples are...
-
Explanation: 1. Creating the List nums = [0, 1, 2, 3, 4, 5] This line creates a list named nums. It contains integers from 0 to 5. The list ...
-
Time series data is everywhere — from stock prices and weather patterns to sales forecasts and sensor data. Understanding how to analyze a...
Categories
100 Python Programs for Beginner
(119)
AI
(213)
Android
(25)
AngularJS
(1)
Api
(7)
Assembly Language
(2)
aws
(28)
Azure
(9)
BI
(10)
Books
(262)
Bootcamp
(1)
C
(78)
C#
(12)
C++
(83)
Course
(86)
Coursera
(300)
Cybersecurity
(29)
data
(2)
Data Analysis
(26)
Data Analytics
(20)
data management
(15)
Data Science
(310)
Data Strucures
(16)
Deep Learning
(128)
Django
(16)
Downloads
(3)
edx
(21)
Engineering
(15)
Euron
(30)
Events
(7)
Excel
(18)
Finance
(10)
flask
(3)
flutter
(1)
FPL
(17)
Generative AI
(65)
Git
(10)
Google
(50)
Hadoop
(3)
HTML Quiz
(1)
HTML&CSS
(48)
IBM
(41)
IoT
(3)
IS
(25)
Java
(99)
Leet Code
(4)
Machine Learning
(255)
Meta
(24)
MICHIGAN
(5)
microsoft
(11)
Nvidia
(8)
Pandas
(13)
PHP
(20)
Projects
(32)
Python
(1260)
Python Coding Challenge
(1054)
Python Mistakes
(50)
Python Quiz
(432)
Python Tips
(5)
Questions
(3)
R
(72)
React
(7)
Scripting
(3)
security
(4)
Selenium Webdriver
(4)
Software
(19)
SQL
(46)
Udemy
(17)
UX Research
(1)
web application
(11)
Web development
(8)
web scraping
(3)













