Monday 15 July 2019
Thursday 11 July 2019
Lecture - 11 Data Modelling - ER Diagrams, Mapping
Irawen July 11, 2019 Engineering, Software No comments
lecture - 9 Process Modelling - DFD , Function Decomp
Irawen July 11, 2019 Engineering, Software No comments
Lecture - 10 Process Modelling - DFD, Function Decomp
Irawen July 11, 2019 Engineering, Software No comments
Lecture -5 Requirements Engineering / Specification
Irawen July 11, 2019 Engineering, Software No comments
Wednesday 10 July 2019
Wednesday 3 July 2019
Tuesday 2 July 2019
Monday 1 July 2019
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;
}
Popular Posts
-
1. What is the output of following Python code? a = 'a' print(int(a, 16)) Solution and Explanation: Let's break down the expr...
-
What you'll learn Automate tasks by writing Python scripts Use Git and GitHub for version control Manage IT resources at scale, both for...
-
1. what is the output of following Python code? my_string = '0x1a' my_int = int(my_string, 16) print(my_int) Solution and Explanatio...
-
What you'll learn Understand why version control is a fundamental tool for coding and collaboration Install and run Git on your local ...
-
What will be the output of the following code snippet? print(bool("")) Answer: False Explanation: An empty string is considered to...
-
Software Architecture Patterns for Serverless Systems - Second Edition: Architecting for innovation with event-driven microservices and mi...
-
Code: x = [1, 2, 3] x.insert(1, 4) print(x) Solution and Explanation: Let's break it down step by step: Creating the list x: x = [1, ...
-
Code: def rem(a, b): return a % b print(rem(3,7)) Solution and Explanation: Let's break down the code step by step: def rem(a, b)::...
-
Introduction to Statistics In the age of big data, understanding statistics and data science concepts is becoming increasingly crucial acros...
-
# 10 different data charts using Python pip install matplotlib seaborn # 1. Line Chart: import matplotlib.pyplot as plt x = [ 1 , 2 , 3 ...
Categories
AI
(27)
Android
(24)
AngularJS
(1)
Assembly Language
(2)
aws
(17)
Azure
(7)
BI
(10)
book
(4)
Books
(115)
C
(77)
C#
(12)
C++
(82)
Course
(62)
Coursera
(179)
coursewra
(1)
Cybersecurity
(22)
data management
(11)
Data Science
(91)
Data Strucures
(6)
Deep Learning
(9)
Django
(6)
Downloads
(3)
edx
(2)
Engineering
(14)
Excel
(13)
Factorial
(1)
Finance
(5)
flutter
(1)
FPL
(17)
Google
(19)
Hadoop
(3)
HTML&CSS
(46)
IBM
(25)
IoT
(1)
IS
(25)
Java
(92)
Leet Code
(4)
Machine Learning
(44)
Meta
(18)
MICHIGAN
(5)
microsoft
(3)
Pandas
(3)
PHP
(20)
Projects
(29)
Python
(747)
Python Coding Challenge
(211)
Questions
(2)
R
(70)
React
(6)
Scripting
(1)
security
(3)
Selenium Webdriver
(2)
Software
(17)
SQL
(40)
UX Research
(1)
web application
(8)